VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes
DtMunitionDispersalAngleDeterminant Class Reference

DtMunitionDispersalAngleDeterminant specifies how a burst of fire is dispersed around the target based on a configured dispersal angle from the shooter. More...

Inheritance diagram for DtMunitionDispersalAngleDeterminant:
Inheritance graph
[legend]

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 DtMunitionDispersalParamsdispersalParams ()

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 DtPhysicalWorldmyPhysicalWorld
DtVector myDetonationLocation
DtSharedVrfObjectReference myShooter
- Protected Attributes inherited from DtBaseMunitionDispersalDeterminant
DtMunitionDispersalParamsmyParams

Detailed Description

DtMunitionDispersalAngleDeterminant specifies how a burst of fire is dispersed around the target based on a configured dispersal angle from the shooter.

Constructor & Destructor Documentation

DtMunitionDispersalAngleDeterminant::DtMunitionDispersalAngleDeterminant ( )

default constructor

virtual DtMunitionDispersalAngleDeterminant::~DtMunitionDispersalAngleDeterminant ( )
virtual

Member Function Documentation

virtual DtMunitionDispersalDeterminant* DtMunitionDispersalAngleDeterminant::clone ( ) const
virtual
virtual DtMunitionDispersalAngleParams* DtMunitionDispersalAngleDeterminant::dispersalAngleParams ( )
virtual
static DtBaseMunitionDispersalDeterminant* DtMunitionDispersalAngleDeterminant::creator ( )
inlinestatic

Creator function.

virtual void DtMunitionDispersalAngleDeterminant::initializeDispersal ( const DtPhysicalWorld physicalWorld,
const DtVector detonationLocation,
DtSharedVrfObjectReference  shooter 
)
virtual

Initializes the determinant for dispersal of a new set of detonations when the location of the shooter is known.

Reimplemented from DtMunitionDispersalDeterminant.

virtual void DtMunitionDispersalAngleDeterminant::nextDetonationResult ( DtVector hitLocation,
DtSharedVrfObjectReference hitEntity 
) const
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.

Member Data Documentation

DtVector DtMunitionDispersalAngleDeterminant::myTopoDetLocation
protected
DtDcm DtMunitionDispersalAngleDeterminant::myLocalToTopoDcm
protected
DtDcm DtMunitionDispersalAngleDeterminant::myTopoToLocalDcm
protected
double DtMunitionDispersalAngleDeterminant::myRange
protected

Range from shooter to detonation.

double DtMunitionDispersalAngleDeterminant::myDispersalRange
protected

Dispersal range of rounds around the primary detonation location.

double DtMunitionDispersalAngleDeterminant::myProbibilityEntityHit
protected

The chance of a round hitting an entity directly.

std::vector<const DtVrfObject*> DtMunitionDispersalAngleDeterminant::myPossibleHitEntities
protected

The entities that may be hit.


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)