![]() |
VR-Forces 4.10 Class Documentation
|
The DtDetonationContext contains all the information necessary for processing a Detonation Interaction for damage adjudication or other information. More...
Public Types | |
| typedef std::map< DtString, double > | DetonationPowerMap |
Public Member Functions | |
| DtDetonationContext (const DtDetonationInteraction &detonationInteraction) | |
| virtual | ~DtDetonationContext () |
| virtual const DtDetonationInteraction & | detonationInter () const |
| The detonation to which this context refers. More... | |
| virtual void | setIsDirectFire (bool isDirect) |
| Indicates whether this detonation is in reference to direct fire or not. More... | |
| virtual bool | isDirectFire () const |
| virtual void | setRange (double range) |
| When isDirectFire returns true, this range is between the attacker and target. More... | |
| virtual double | range () const |
| virtual void | setEventId (const DtEventId id) |
| Set the EventId of the incoming detonation interaction This can be useful in places where you want to make sure the detonation isn't counted twice. More... | |
| virtual const DtEventId & | eventId () const |
| virtual void | setSurface (const DtSymbolString &surface) |
| The impacted surface of the target. More... | |
| virtual DtSymbolString | surface () const |
| virtual void | setAngleOfIncidence (double angleOfIncidence) |
| The angle of incidence of the impact, in relation to the target. More... | |
| virtual double | angleOfIncidence () const |
| virtual void | setMunition (const DtSimMunition &munition) |
| The munition associated with the detonation. More... | |
| virtual const DtSimMunition & | munition () const |
| virtual void | setDetonationPowers (const DetonationPowerMap &powers) |
| The power of the detonation at the target's location for each relevant type of power. More... | |
| virtual void | setDetonationPower (const DtString &powerType, double power) |
| virtual void | clearDetonationPowers () |
| virtual const DetonationPowerMap & | detonationPowers () const |
| virtual double | detonationPower (const DtString &powerType) const |
Private Attributes | |
| const DtDetonationInteraction & | myDetonationInteraction |
| DtSimMunition | myMunition |
| ! Default values: More... | |
| bool | myIsDirectFire |
| ! More... | |
| DtSymbolString | mySurface |
| ! false More... | |
| double | myAngleOfIncidence |
| ! "front" More... | |
| double | myRange |
| ! 0.0 More... | |
| DetonationPowerMap | myPowers |
| ! 4000.0 More... | |
| DtEventId | myEventId |
The DtDetonationContext contains all the information necessary for processing a Detonation Interaction for damage adjudication or other information.
| typedef std::map<DtString, double> DtDetonationContext::DetonationPowerMap |
| DtDetonationContext::DtDetonationContext | ( | const DtDetonationInteraction & | detonationInteraction | ) |
|
virtual |
|
virtual |
The detonation to which this context refers.
|
virtual |
Indicates whether this detonation is in reference to direct fire or not.
Direct fire is fire, such as a bullet or tank shell, which must impact on its target to damage it.
|
virtual |
|
virtual |
When isDirectFire returns true, this range is between the attacker and target.
Otherwise, this is the range from the detonation to the target.
|
virtual |
|
virtual |
Set the EventId of the incoming detonation interaction This can be useful in places where you want to make sure the detonation isn't counted twice.
|
virtual |
|
virtual |
The impacted surface of the target.
|
virtual |
|
virtual |
The angle of incidence of the impact, in relation to the target.
|
virtual |
|
virtual |
The munition associated with the detonation.
|
virtual |
|
virtual |
The power of the detonation at the target's location for each relevant type of power.
|
virtual |
|
virtual |
|
virtual |
|
private |
|
private |
! Default values:
|
private |
!
|
private |
! false
|
private |
! "front"
|
private |
! 0.0
|
private |
! 4000.0
|
private |