![]() |
VR-Forces 4.0.4 Class Documentation
|
DtMultipleHitDamageActuator is responsible for adjudicating the damage from appropriate detonations. More...

Public Member Functions | |
| DtMultipleHitDamageActuator (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) | |
| (const DtString&,DtVrfObject*,DtSimManager*, | |
| virtual | ~DtMultipleHitDamageActuator () |
| destructor Unregisters with the detonation manager. | |
| virtual bool | init () |
| Overridden from the base class to call createPSR(). | |
| virtual bool | createPSR () |
| Create a process state repository, or a different type if it is specified in the OPD. | |
| virtual void | tick () |
| Determines the destroyed status of the entity, and then checks to see if the flaming and smoking indicators should be turned off. | |
| virtual bool | adjudicateDirectDamage (const DtDetonationContext &detonationContext) |
| When a detonation context is received, from the detonation manager, it is processed in order to determine the appropriate damage to the entity. | |
| virtual bool | adjudicateCollateralDamage (const DtDetonationContext &detonationContext) |
| Determines collateral damage from an impact near the entity. | |
| virtual DtString | type () const |
| Returns a string identifies the class type of component. | |
Static Public Member Functions | |
| static DtSimComponent * | creator (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) |
| (const DtString&,DtVrfObject*,DtSimManager*, | |
Protected Member Functions | |
| virtual bool | getRangeEntry (const DtDetonationContext &detonationContext, DtPrbRangeTableEntry &rangeEntry, bool isDirectDamage=true) |
| Gets the range entry from the damage component descriptor's kill probabilities. | |
| virtual bool | isCatastrophicallyKilled () |
| from adjudicateDirectDamage and adjudicateCollateralDamage | |
| virtual bool | isFirepowerKilled () |
| virtual bool | isMobilityKilled () |
Protected Attributes | |
| DtMultipleHitDamageActuatorDescriptor * | myMultipleHitDamageComponentDescriptor |
| The descriptor that initializes this actuator. | |
| int | myCurrentHitPoints |
| The current health status of the entity. | |
| DtMultipleHitDamagePSR * | myProcessState |
| bool | myFirstTick |
Private Member Functions | |
| DtMultipleHitDamageActuator () | |
| Default constructor; not implemented. | |
| DtMultipleHitDamageActuator (const DtMultipleHitDamageActuator &orig) | |
| copy constructor; not implemented | |
| DtMultipleHitDamageActuator & | operator= (const DtMultipleHitDamageActuator &orig) |
| assignment operator; not implemented | |
DtMultipleHitDamageActuator is responsible for adjudicating the damage from appropriate detonations.
Uses Descriptor Type: DtMultipleHitDamageActuatorDescriptor
| DtMultipleHitDamageActuator::DtMultipleHitDamageActuator | ( | const DtString & | name, |
| DtVrfObject * | owner, | ||
| DtSimManager * | simManager, | ||
| DtComponentDescriptor * | desc = 0, |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
(const DtString&,DtVrfObject*,DtSimManager*,
| name | Reader writer name of this component. |
| owner | The DtVrfObject that owns this component |
| simManager | The simulation manager (provides access to terrain, message interface, simulation clock). |
| desc | The component descriptor used to initialize this component. |
| parentRegistry | Pointer to the parent reader writer registry (the containing object that reads/writes this object). |
| virtual DtMultipleHitDamageActuator::~DtMultipleHitDamageActuator | ( | ) | [virtual] |
destructor Unregisters with the detonation manager.
| DtMultipleHitDamageActuator::DtMultipleHitDamageActuator | ( | ) | [private] |
Default constructor; not implemented.
| DtMultipleHitDamageActuator::DtMultipleHitDamageActuator | ( | const DtMultipleHitDamageActuator & | orig | ) | [private] |
copy constructor; not implemented
| virtual bool DtMultipleHitDamageActuator::init | ( | ) | [virtual] |
Overridden from the base class to call createPSR().
Reimplemented from DtDamageAdjudicationActuator.
| virtual bool DtMultipleHitDamageActuator::createPSR | ( | ) | [virtual] |
Create a process state repository, or a different type if it is specified in the OPD.
| virtual void DtMultipleHitDamageActuator::tick | ( | ) | [virtual] |
Determines the destroyed status of the entity, and then checks to see if the flaming and smoking indicators should be turned off.
Reimplemented from DtDamageAdjudicationActuator.
| virtual bool DtMultipleHitDamageActuator::adjudicateDirectDamage | ( | const DtDetonationContext & | detonationContext | ) | [virtual] |
When a detonation context is received, from the detonation manager, it is processed in order to determine the appropriate damage to the entity.
Determines if the entity is catastrophically killed, mobility killed, and/or firepower killed. If an entity is catastrophically killed, mobility and firepower killed status are not determined as there is no point. However, an entity that is not catastrophically killed can be both firepower killed and mobility killed, or just one or the other.
Reimplemented from DtDamageAdjudicationActuator.
| virtual bool DtMultipleHitDamageActuator::adjudicateCollateralDamage | ( | const DtDetonationContext & | detonationContext | ) | [virtual] |
Determines collateral damage from an impact near the entity.
Reimplemented from DtDamageAdjudicationActuator.
| virtual DtString DtMultipleHitDamageActuator::type | ( | ) | const [virtual] |
Returns a string identifies the class type of component.
Type values are defined in compTypes.h. DtSimComponent creation functions are registered with the DtSimComponentFactory using the type values as the key.
Reimplemented from DtDamageAdjudicationActuator.
| static DtSimComponent* DtMultipleHitDamageActuator::creator | ( | const DtString & | name, |
| DtVrfObject * | owner, | ||
| DtSimManager * | simManager, | ||
| DtComponentDescriptor * | desc = 0, |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) | [static] |
(const DtString&,DtVrfObject*,DtSimManager*,
| name | Reader writer name of this component. |
| owner | The DtVrfObject that owns this component |
| simManager | The simulation manager (provides access to terrain, message interface, simulation clock). |
| desc | The component descriptor used to initialize this component. |
| parentRegistry | Pointer to the parent reader writer registry (the containing object that reads/writes this object). |
Reimplemented from DtDamageAdjudicationActuator.
| virtual bool DtMultipleHitDamageActuator::getRangeEntry | ( | const DtDetonationContext & | detonationContext, |
| DtPrbRangeTableEntry & | rangeEntry, | ||
| bool | isDirectDamage = true |
||
| ) | [protected, virtual] |
Gets the range entry from the damage component descriptor's kill probabilities.
| detonationContext | Contains all relevant information for finding the proper range entry. |
| rangeEntry | The range entry to be filled in correctly if found. from adjudicateDirectDamage and adjudicateCollateralDamage Passes in boolean to determine which damage table to use for the look up Default is to lookup in the direct damage file. Set to false for collateral damage file. |
| virtual bool DtMultipleHitDamageActuator::isCatastrophicallyKilled | ( | ) | [protected, virtual] |
from adjudicateDirectDamage and adjudicateCollateralDamage
| virtual bool DtMultipleHitDamageActuator::isFirepowerKilled | ( | ) | [protected, virtual] |
| virtual bool DtMultipleHitDamageActuator::isMobilityKilled | ( | ) | [protected, virtual] |
| DtMultipleHitDamageActuator& DtMultipleHitDamageActuator::operator= | ( | const DtMultipleHitDamageActuator & | orig | ) | [private] |
assignment operator; not implemented
DtMultipleHitDamageActuatorDescriptor* DtMultipleHitDamageActuator::myMultipleHitDamageComponentDescriptor [protected] |
The descriptor that initializes this actuator.
It reads in the initial number of hit points this entity has for full health
int DtMultipleHitDamageActuator::myCurrentHitPoints [protected] |
The current health status of the entity.
bool DtMultipleHitDamageActuator::myFirstTick [protected] |