14 #include <vl/detonationInteraction.h>
81 virtual const char*
type()
const;
125 virtual void setHitPoints(
int current,
int full);
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual bool adjudicateCollateralDamage(const DtDetonationContext &detonationContext)
Determines collateral damage from an impact near the entity.
virtual bool isMobilityKilled(DtPrbValueList &probabilities, DtSymbolString mobilityKillString) const
Determines if the entity is mobility killed by the detonation with the specified list of probabilitie...
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
virtual const char * type() const
Returns a string identifies the class type of component.
DtEventId myCurrentId
This is set in adjudicate direct damage to make sure a hit isn't counted twice in a collateral damage...
Definition: multipleHitDamageActuator.h:138
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
DtMultipleHitDamageActuatorDescriptor; descriptor for the DtMultipleHitDamageActuator component...
Definition: multipleHitDamageActuatorDescriptor.h:23
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
DtMultipleHitDamageActuatorDescriptor * myMultipleHitDamageComponentDescriptor
The descriptor that initializes this actuator.
Definition: multipleHitDamageActuator.h:131
A damage actuator that keeps track of "Hit Points" for an entity.
Definition: multipleHitDamageActuator.h:38
virtual bool isFirepowerKilled(DtPrbValueList &probabilities, DtSymbolString firepowerKillString) const
Determines if the entity is firepower killed by the detonation with the specified list of probabiliti...
virtual void setRestored()
Re-registers the entity to receive detonations since it is now restored.
virtual bool createPSR()
Create a process state repository (DtDamageAdjudicationPSR), or a different type if it is specified i...
DtDamageAdjudicationActuator is responsible for adjudicating the damage from appropriate detonations...
Definition: damageAdjudicationActuator.h:63
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
DtMultipleHitDamagePSR * myMHDProcessState
Definition: multipleHitDamageActuator.h:135
DtPrbValueList.
Definition: prbValueList.h:19
The DtDetonationContext contains all the information necessary for processing a Detonation Interactio...
Definition: detonationContext.h:27
int myCurrentHitPoints
The current health status of the entity.
Definition: multipleHitDamageActuator.h:134
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
DtDamageAdjudicationActuator & operator=(const DtDamageAdjudicationActuator &orig)
assignment operator; not implemented
virtual bool init()
Registers callbacks with the detonation manager.
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
virtual bool adjudicateDirectDamage(const DtDetonationContext &detonationContext)
When a detonation context is received, from the detonation manager, it is processed in order to deter...
class DtMultipleHitDamagePSR:
Definition: multipleHitDamagePSR.h:19
virtual bool isCatastrophicallyKilled(DtPrbValueList &probabilities, DtSymbolString catastrophicKillString) const
Determines if the entity is catastrophically killed by the detonation with the specified list of prob...
virtual bool getProbabilities(const DtDetonationContext &detonationContext, DtPrbValueList &probabilities, bool isDirectDamage=true) const
Gets the list of probabilities from the damage component descriptor's damage tables.