![]() |
VR-Forces 4.0.4 Class Documentation
|

Public Member Functions | |
| DtIndirectArtilleryPSR (DtVrfObject *vrfObject, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) | |
| constructor | |
| DtIndirectArtilleryPSR (const DtIndirectArtilleryPSR &orig, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) | |
| copy constructor | |
| virtual | ~DtIndirectArtilleryPSR () |
| destructor | |
| DtIndirectArtilleryPSR & | operator= (const DtIndirectArtilleryPSR &orig) |
| assignment operator | |
| virtual DtVrfProcessStateRepository * | clone (const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const |
| returns a newly created copy of this object | |
| virtual DtString | type () const |
| Returns the string type of this process state repository. | |
| virtual void | setNumberOfSalvos (int numSalvos) |
| Get / Set the number of salvos state variable. | |
| virtual int | numberOfSalvos () const |
| virtual void | setRoundsPerSalvo (int roundsPerSalvo) |
| Get / Set the number of rounds per salvo state variable. | |
| virtual int | roundsPerSalvo () const |
| virtual void | setStartTime (int startTime) |
| Get / Set the start time state variable. | |
| virtual int | startTime () const |
| virtual void | setStartTimeImmediate (bool flag) |
| Get / Set the start time state variable. | |
| virtual bool | startTimeImmediate () const |
| virtual void | setTimeBetweenSalvos (int timeBetweenSalvos) |
| Get / Set the time between salvos state variable. | |
| virtual int | timeBetweenSalvos () const |
| virtual void | setScatterTime (double scatterTime) |
| Get / Set the time between salvos state variable. | |
| virtual double | scatterTime () const |
| virtual void | setAltitude (double altitude) |
| Get / Set the altitude state variable. | |
| virtual double | altitude () const |
| virtual void | setWindDirection (double windDirection) |
| Get / Set the wind offset direction (degrees) state variable. 0 = Due north, 90 = Due east. | |
| virtual double | windDirection () const |
| virtual void | setWindDistance (double windDistance) |
| Get / Set the wind offset direction (degrees) state variable. 0 = Due north, 90 = Due east. | |
| virtual double | windDistance () const |
| virtual void | setMunitionType (DtEntityType const &munitionType) |
| Get / Set the munition type state variable. | |
| virtual DtEntityType | munitionType () const |
Static Public Member Functions | |
| static DtVrfProcessStateRepository * | creator (const DtString &rwName, DtVrfObject *vrfObject, DtReaderWriterRegistry *parentRegistry) |
| Returns a newly created instance of this class. | |
Private Attributes | |
| DtRwInt | myNumberOfSalvos |
| Number of salvos. | |
| DtRwInt | myRoundsPerSalvo |
| Number of rounds per salvo. | |
| DtRwInt | myStartTime |
| Time in seconds, relative to simulation start, when rounds start arriving. | |
| DtRwBoolean | myStartTimeImmediate |
| If true, then barrage will start on next tick, and startTime will be set to that tick. | |
| DtRwInt | myTimeBetweenSalvos |
| Time in seconds between salvos. | |
| DtRwReal | myScatterTime |
| A timer used to keep rounds from arriving at the same time. | |
| DtRwReal | myAltitude |
| Altitude (meters AGL) where detonation will take place. | |
| DtRwReal | myWindDirection |
| Direction of wind displacement. | |
| DtRwReal | myWindDistance |
| Distance of wind displacement. | |
| DtRwEntityType | myMunitionType |
| Distance of wind displacement. | |
| DtIndirectArtilleryPSR::DtIndirectArtilleryPSR | ( | DtVrfObject * | vrfObject, |
| const DtString & | rwName = DtString::nullString(), |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
constructor
| DtIndirectArtilleryPSR::DtIndirectArtilleryPSR | ( | const DtIndirectArtilleryPSR & | orig, |
| const DtString & | rwName = DtString::nullString(), |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
copy constructor
| virtual DtIndirectArtilleryPSR::~DtIndirectArtilleryPSR | ( | ) | [virtual] |
destructor
| DtIndirectArtilleryPSR& DtIndirectArtilleryPSR::operator= | ( | const DtIndirectArtilleryPSR & | orig | ) |
assignment operator
| virtual DtVrfProcessStateRepository* DtIndirectArtilleryPSR::clone | ( | const DtString & | rwName = DtString::nullString(), |
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) | const [virtual] |
returns a newly created copy of this object
Implements DtVrfProcessStateRepository.
| virtual DtString DtIndirectArtilleryPSR::type | ( | ) | const [virtual] |
Returns the string type of this process state repository.
Implements DtVrfProcessStateRepository.
| virtual void DtIndirectArtilleryPSR::setNumberOfSalvos | ( | int | numSalvos | ) | [virtual] |
Get / Set the number of salvos state variable.
| virtual int DtIndirectArtilleryPSR::numberOfSalvos | ( | ) | const [virtual] |
| virtual void DtIndirectArtilleryPSR::setRoundsPerSalvo | ( | int | roundsPerSalvo | ) | [virtual] |
Get / Set the number of rounds per salvo state variable.
| virtual int DtIndirectArtilleryPSR::roundsPerSalvo | ( | ) | const [virtual] |
| virtual void DtIndirectArtilleryPSR::setStartTime | ( | int | startTime | ) | [virtual] |
Get / Set the start time state variable.
| virtual int DtIndirectArtilleryPSR::startTime | ( | ) | const [virtual] |
| virtual void DtIndirectArtilleryPSR::setStartTimeImmediate | ( | bool | flag | ) | [virtual] |
Get / Set the start time state variable.
| virtual bool DtIndirectArtilleryPSR::startTimeImmediate | ( | ) | const [virtual] |
| virtual void DtIndirectArtilleryPSR::setTimeBetweenSalvos | ( | int | timeBetweenSalvos | ) | [virtual] |
Get / Set the time between salvos state variable.
| virtual int DtIndirectArtilleryPSR::timeBetweenSalvos | ( | ) | const [virtual] |
| virtual void DtIndirectArtilleryPSR::setScatterTime | ( | double | scatterTime | ) | [virtual] |
Get / Set the time between salvos state variable.
| virtual double DtIndirectArtilleryPSR::scatterTime | ( | ) | const [virtual] |
| virtual void DtIndirectArtilleryPSR::setAltitude | ( | double | altitude | ) | [virtual] |
Get / Set the altitude state variable.
| virtual double DtIndirectArtilleryPSR::altitude | ( | ) | const [virtual] |
| virtual void DtIndirectArtilleryPSR::setWindDirection | ( | double | windDirection | ) | [virtual] |
Get / Set the wind offset direction (degrees) state variable. 0 = Due north, 90 = Due east.
| virtual double DtIndirectArtilleryPSR::windDirection | ( | ) | const [virtual] |
| virtual void DtIndirectArtilleryPSR::setWindDistance | ( | double | windDistance | ) | [virtual] |
Get / Set the wind offset direction (degrees) state variable. 0 = Due north, 90 = Due east.
| virtual double DtIndirectArtilleryPSR::windDistance | ( | ) | const [virtual] |
| virtual void DtIndirectArtilleryPSR::setMunitionType | ( | DtEntityType const & | munitionType | ) | [virtual] |
Get / Set the munition type state variable.
| virtual DtEntityType DtIndirectArtilleryPSR::munitionType | ( | ) | const [virtual] |
| static DtVrfProcessStateRepository* DtIndirectArtilleryPSR::creator | ( | const DtString & | rwName, |
| DtVrfObject * | vrfObject, | ||
| DtReaderWriterRegistry * | parentRegistry | ||
| ) | [static] |
Returns a newly created instance of this class.
Number of salvos.
Number of rounds per salvo.
DtRwInt DtIndirectArtilleryPSR::myStartTime [private] |
Time in seconds, relative to simulation start, when rounds start arriving.
If true, then barrage will start on next tick, and startTime will be set to that tick.
Time in seconds between salvos.
A timer used to keep rounds from arriving at the same time.
The actual arrival time is is startTime + DtRand() * scatterTime.
DtRwReal DtIndirectArtilleryPSR::myAltitude [private] |
Altitude (meters AGL) where detonation will take place.
Direction of wind displacement.
Distance of wind displacement.
Distance of wind displacement.