![]() |
VR-Forces 4.7 Class Documentation
|
DtMunitionDispersalAngleDeterminant specifies how a burst of fire is dispersed around the target based on a configured dispersal angle from the shooter. More...

Public Member Functions | |
| DtMunitionDispersalAngleDeterminant () | |
| default constructor | |
| virtual | ~DtMunitionDispersalAngleDeterminant () |
| virtual DtMunitionDispersalDeterminant * | clone () const |
| virtual DtMunitionDispersalAngleParams * | dispersalAngleParams () |
| virtual void | initializeDispersal (const DtPhysicalWorld *physicalWorld, const DtVector &detonationLocation, DtSharedVrfObjectReference shooter) |
| Initializes the determinant for dispersal of a new set of detonations when the location of the shooter is known. | |
| virtual void | nextDetonationResult (DtVector &hitLocation, DtSharedVrfObjectReference &hitEntity) const |
| Determines where the next round hits, and if it directly hits an entity. | |
Public Member Functions inherited from DtMunitionDispersalDeterminant | |
| DtMunitionDispersalDeterminant () | |
| default constructor | |
| virtual | ~DtMunitionDispersalDeterminant () |
Public Member Functions inherited from DtBaseMunitionDispersalDeterminant | |
| DtBaseMunitionDispersalDeterminant () | |
| default constructor | |
| virtual | ~DtBaseMunitionDispersalDeterminant () |
| virtual DtString | dispersalType () const |
| The type of dispersal this determinant implements. | |
| virtual void | setDispersalParams (DtMunitionDispersalParams *params) |
| Sets the params for this determinant. | |
| virtual const DtMunitionDispersalParams * | dispersalParams () const |
| Gets the params for this determinant. | |
| virtual DtMunitionDispersalParams * | dispersalParams () |
Static Public Member Functions | |
| static DtBaseMunitionDispersalDeterminant * | creator () |
| Creator function. | |
Protected Attributes | |
| DtVector | myTopoDetLocation |
| DtDcm | myLocalToTopoDcm |
| DtDcm | myTopoToLocalDcm |
| double | myRange |
| Range from shooter to detonation. | |
| double | myDispersalRange |
| Dispersal range of rounds around the primary detonation location. | |
| double | myProbibilityEntityHit |
| The chance of a round hitting an entity directly. | |
| std::vector< const DtVrfObject * > | myPossibleHitEntities |
| The entities that may be hit. | |
Protected Attributes inherited from DtMunitionDispersalDeterminant | |
| const DtPhysicalWorld * | myPhysicalWorld |
| DtVector | myDetonationLocation |
| DtSharedVrfObjectReference | myShooter |
Protected Attributes inherited from DtBaseMunitionDispersalDeterminant | |
| DtMunitionDispersalParams * | myParams |
DtMunitionDispersalAngleDeterminant specifies how a burst of fire is dispersed around the target based on a configured dispersal angle from the shooter.
| DtMunitionDispersalAngleDeterminant::DtMunitionDispersalAngleDeterminant | ( | ) |
default constructor
|
virtual |
|
virtual |
Implements DtMunitionDispersalDeterminant.
|
virtual |
|
inlinestatic |
Creator function.
|
virtual |
Initializes the determinant for dispersal of a new set of detonations when the location of the shooter is known.
Reimplemented from DtMunitionDispersalDeterminant.
|
virtual |
Determines where the next round hits, and if it directly hits an entity.
hitEntity will be invalid if no entity was hit. initializeDispersal must be called before calling this function.
Implements DtMunitionDispersalDeterminant.
|
protected |
|
protected |
|
protected |
|
protected |
Range from shooter to detonation.
|
protected |
Dispersal range of rounds around the primary detonation location.
|
protected |
The chance of a round hitting an entity directly.
|
protected |
The entities that may be hit.