![]() |
VR-Forces 4.0.4 Class Documentation
|
class DtMultipleHitDamagePSR: More...

Public Member Functions | |
| DtMultipleHitDamagePSR (DtVrfObject *vrfObject, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) | |
| constructor | |
| DtMultipleHitDamagePSR (const DtMultipleHitDamagePSR &orig, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) | |
| copy constructor | |
| virtual | ~DtMultipleHitDamagePSR () |
| destructor | |
| DtMultipleHitDamagePSR & | operator= (const DtMultipleHitDamagePSR &orig) |
| assignment operator | |
| virtual DtVrfProcessStateRepository * | clone (const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const |
| returns a newly created copy of this object | |
| virtual DtString | type () const |
| Returns the string type of this process state repository. | |
| virtual void | setCurrentHitPoints (int points) |
| Get / Set the current hit points variable. | |
| virtual int | currentHitPoints () const |
| virtual void | setTotalDetonations (int dets) |
| Get / Set the total detonations for this entity. | |
| virtual int | totalDetonations () const |
| virtual void | setNumberOfHits (int hits) |
| Get / Set the total of hits this entity sustained. | |
| virtual int | numberOfHits () const |
Static Public Member Functions | |
| static DtVrfProcessStateRepository * | creator (const DtString &rwName, DtVrfObject *vrfObject, DtReaderWriterRegistry *parentRegistry) |
| Returns a newly created instance of this class. | |
Protected Attributes | |
| DtRwInt | myCurrentHitPoints |
| Keep track when we save out scenario on current level of health of the entity. | |
| DtRwInt | myTotalDetonations |
| DtRwInt | myNumberOfHits |
class DtMultipleHitDamagePSR:
This is PSR keeps track of the current number of hits point this entity has left, number of detonations and number of hits this entity has sustained.
| DtMultipleHitDamagePSR::DtMultipleHitDamagePSR | ( | DtVrfObject * | vrfObject, |
| const DtString & | rwName = DtString::nullString(), |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
constructor
| DtMultipleHitDamagePSR::DtMultipleHitDamagePSR | ( | const DtMultipleHitDamagePSR & | orig, |
| const DtString & | rwName = DtString::nullString(), |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
copy constructor
| virtual DtMultipleHitDamagePSR::~DtMultipleHitDamagePSR | ( | ) | [virtual] |
destructor
| DtMultipleHitDamagePSR& DtMultipleHitDamagePSR::operator= | ( | const DtMultipleHitDamagePSR & | orig | ) |
assignment operator
| virtual DtVrfProcessStateRepository* DtMultipleHitDamagePSR::clone | ( | const DtString & | rwName = DtString::nullString(), |
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) | const [virtual] |
returns a newly created copy of this object
Implements DtVrfProcessStateRepository.
| virtual DtString DtMultipleHitDamagePSR::type | ( | ) | const [virtual] |
Returns the string type of this process state repository.
Implements DtVrfProcessStateRepository.
| virtual void DtMultipleHitDamagePSR::setCurrentHitPoints | ( | int | points | ) | [virtual] |
Get / Set the current hit points variable.
| virtual int DtMultipleHitDamagePSR::currentHitPoints | ( | ) | const [virtual] |
| virtual void DtMultipleHitDamagePSR::setTotalDetonations | ( | int | dets | ) | [virtual] |
Get / Set the total detonations for this entity.
| virtual int DtMultipleHitDamagePSR::totalDetonations | ( | ) | const [virtual] |
| virtual void DtMultipleHitDamagePSR::setNumberOfHits | ( | int | hits | ) | [virtual] |
Get / Set the total of hits this entity sustained.
| virtual int DtMultipleHitDamagePSR::numberOfHits | ( | ) | const [virtual] |
| static DtVrfProcessStateRepository* DtMultipleHitDamagePSR::creator | ( | const DtString & | rwName, |
| DtVrfObject * | vrfObject, | ||
| DtReaderWriterRegistry * | parentRegistry | ||
| ) | [static] |
Returns a newly created instance of this class.
DtRwInt DtMultipleHitDamagePSR::myCurrentHitPoints [protected] |
Keep track when we save out scenario on current level of health of the entity.
DtRwInt DtMultipleHitDamagePSR::myTotalDetonations [protected] |
DtRwInt DtMultipleHitDamagePSR::myNumberOfHits [protected] |