VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
humanDamageActuatorDescriptor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
7 
8 #pragma once
9 
12 #include <readerWriter/rwInt.h>
13 #include <readerWriter/rwReal.h>
14 #include <vrfutil/rwStringList.h>
15 
17 
20 {
21 public:
24  DtReaderWriterRegistry* parentRegistry = 0);
25 
28  DtReaderWriterRegistry* parentRegistry = 0);
29 
33 
35  virtual DtComponentDescriptor* clone(DtReaderWriterRegistry* parentRegistry = 0) const override;
36 
37  virtual ~DtHumanDamageActuatorDescriptor() override;
38 
41  virtual DtString type() const override;
42 
45  virtual double timeToRecover() const;
46  virtual void setTimeToRecover(double recoverTime);
48 
51  virtual const DtRwStringList& cumulativePowerTypes() const;
52  virtual void setCumulativePowerTypes(const DtRwStringList & list);
54 
57 
58 protected:
59 
67 
74 };
DtDamageAdjudicationComponentDescriptor is used to specify the parameters for the DtDamageAdjudicatio...
Definition: damageAdjudicationComponentDescriptor.h:33
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=NULL) const override
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
DtRwReal myRecoveryTime
Parameter Name: recovery-time Parameter Description: The time it takes for a person to recover from b...
Definition: humanDamageActuatorDescriptor.h:66
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
DtRwStringList myCumulativePowerTypes
Parameter Name: cumalative-power-types Parameter Description: A list of damage power types that can h...
Definition: humanDamageActuatorDescriptor.h:73
Definition: humanDamageActuatorDescriptor.h:19
virtual DtString type() const override
Returns the type of component this descriptor describes. Used to create the descriptor on read from a...
DtDamageAdjudicationComponentDescriptor & operator=(const DtDamageAdjudicationComponentDescriptor &orig)
assignment. See note above.
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
static DtComponentDescriptor * creator()
Definition: rwStringList.h:20

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)