The DtDetonationContext contains all the information necessary for processing a Detonation Interaction for damage adjudication or other information.
More...
Detailed Description
The DtDetonationContext contains all the information necessary for processing a Detonation Interaction for damage adjudication or other information.
- Note
- As of VRF 3.9 shooterObjId() has been removed. To get the same functionallity, call deonationInter().attackerId() when isDirectFire() is true, and deonationInter().munitionId() with isDirectFile() is false.
Member Typedef Documentation
Constructor & Destructor Documentation
| virtual DtDetonationContext::~DtDetonationContext |
( |
| ) |
|
|
virtual |
Member Function Documentation
The detonation to which this context refers.
| virtual void DtDetonationContext::setIsDirectFire |
( |
bool |
isDirect | ) |
|
|
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 bool DtDetonationContext::isDirectFire |
( |
| ) |
const |
|
virtual |
| virtual void DtDetonationContext::setRange |
( |
double |
range | ) |
|
|
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 double DtDetonationContext::range |
( |
| ) |
const |
|
virtual |
| virtual void DtDetonationContext::setEventId |
( |
const DtEventId |
id | ) |
|
|
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 const DtEventId& DtDetonationContext::eventId |
( |
| ) |
const |
|
virtual |
| virtual void DtDetonationContext::setSurface |
( |
const DtSymbolString & |
surface | ) |
|
|
virtual |
The impacted surface of the target.
| virtual void DtDetonationContext::setAngleOfIncidence |
( |
double |
angleOfIncidence | ) |
|
|
virtual |
The angle of incidence of the impact, in relation to the target.
| virtual double DtDetonationContext::angleOfIncidence |
( |
| ) |
const |
|
virtual |
| virtual void DtDetonationContext::setMunition |
( |
const DtSimMunition & |
munition | ) |
|
|
virtual |
The munition associated with the detonation.
| virtual const DtSimMunition& DtDetonationContext::munition |
( |
| ) |
const |
|
virtual |
| virtual void DtDetonationContext::setDetonationPowers |
( |
const DetonationPowerMap & |
powers | ) |
|
|
virtual |
The power of the detonation at the target's location for each relevant type of power.
| virtual void DtDetonationContext::setDetonationPower |
( |
const DtString & |
powerType, |
|
|
double |
power |
|
) |
| |
|
virtual |
| virtual void DtDetonationContext::clearDetonationPowers |
( |
| ) |
|
|
virtual |
| virtual double DtDetonationContext::detonationPower |
( |
const DtString & |
powerType | ) |
const |
|
virtual |
Member Data Documentation
| bool DtDetonationContext::myIsDirectFire |
|
private |
| double DtDetonationContext::myAngleOfIncidence |
|
private |
| double DtDetonationContext::myRange |
|
private |
| DtEventId DtDetonationContext::myEventId |
|
private |
The documentation for this class was generated from the following file:
- /exports/nfedora7-1/nightly/docs/vrforcesDevelopment.vrf4-6-branch/include/vrfobjcore/detonationContext.h