![]() |
VR-Forces 4.0.4 Class Documentation
|
DtFireCruiseMissileTask is a task message for launching cruise missiles. More...

Public Member Functions | |
| DtFireCruiseMissileTask () | |
| Default Constructor. | |
| DtFireCruiseMissileTask (const DtString &writeName, DtReaderWriterRegistry *parentRegistry=0) | |
| constructor If you have a task 'put' itself, the writeName will preface the task. | |
| DtFireCruiseMissileTask (const DtString &writeName, const DtFireCruiseMissileTask &orig, DtReaderWriterRegistry *parentRegistry=0) | |
| copy constructor | |
| const DtFireCruiseMissileTask & | operator= (const DtFireCruiseMissileTask &orig) |
| assignment operator | |
| virtual | ~DtFireCruiseMissileTask () |
| virtual int | type () const |
| returns DtFireCruiseMissileTaskType. | |
| virtual DtSimTask * | clone (const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const |
| Creates a copy of this DtFireCruiseMissileTask task. | |
| virtual DtString | stringRep () const |
| Get a readable string representation of this task. | |
| virtual void | setTargetName (const DtString &target) |
| Set/Get the object name of the target. | |
| virtual DtString | targetName () const |
| virtual void | setDetonationProximity (DtReal p) |
| Set/Get the distance (meters) from the target object within which to detonate the missile. | |
| virtual DtReal | detonationProximity () const |
| virtual void | setRouteName (const DtString &route) |
| Set/Get the name of the route to follow on the way to the target. | |
| virtual DtString | routeName () const |
| virtual void | setSpeed (DtReal speed) |
| Set/Get the speed to travel to the target. | |
| virtual DtReal | speed () const |
| virtual int | netRepSize () const |
| Returns the size of the full network representation (control object name included) padded to an 8-byte boundary. | |
| virtual bool | setFromNet (const char *contentBuffer, unsigned contentSize) |
| Fills in the task from the network buffer. | |
| virtual bool | setToNet () |
| Fills in the network buffer (created by base class simTask) with the task contents. | |
Static Public Member Functions | |
| static DtSimTask * | creator () |
Protected Attributes | |
| DtRwString | myTargetName |
| The object name of the target. | |
| DtRwReal | myDetonationProximity |
| The proximity in which to detonate the missile. | |
| DtRwString | myRouteName |
| DtRwReal | mySpeed |
DtFireCruiseMissileTask is a task message for launching cruise missiles.
It contains a target object, route, speed, and detonation proximity.
Default Constructor.
| DtFireCruiseMissileTask::DtFireCruiseMissileTask | ( | const DtString & | writeName, |
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
constructor If you have a task 'put' itself, the writeName will preface the task.
| DtFireCruiseMissileTask::DtFireCruiseMissileTask | ( | const DtString & | writeName, |
| const DtFireCruiseMissileTask & | orig, | ||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
copy constructor
| virtual DtFireCruiseMissileTask::~DtFireCruiseMissileTask | ( | ) | [virtual] |
| const DtFireCruiseMissileTask& DtFireCruiseMissileTask::operator= | ( | const DtFireCruiseMissileTask & | orig | ) |
assignment operator
| virtual int DtFireCruiseMissileTask::type | ( | ) | const [virtual] |
returns DtFireCruiseMissileTaskType.
Implements DtSimTask.
| virtual DtSimTask* DtFireCruiseMissileTask::clone | ( | const DtString & | name, |
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) | const [virtual] |
Creates a copy of this DtFireCruiseMissileTask task.
Implements DtSimTask.
| virtual DtString DtFireCruiseMissileTask::stringRep | ( | ) | const [virtual] |
Get a readable string representation of this task.
Implements DtSimTask.
| virtual void DtFireCruiseMissileTask::setTargetName | ( | const DtString & | target | ) | [virtual] |
Set/Get the object name of the target.
| virtual DtString DtFireCruiseMissileTask::targetName | ( | ) | const [virtual] |
| virtual void DtFireCruiseMissileTask::setDetonationProximity | ( | DtReal | p | ) | [virtual] |
Set/Get the distance (meters) from the target object within which to detonate the missile.
| virtual DtReal DtFireCruiseMissileTask::detonationProximity | ( | ) | const [virtual] |
| virtual void DtFireCruiseMissileTask::setRouteName | ( | const DtString & | route | ) | [virtual] |
Set/Get the name of the route to follow on the way to the target.
A null route is valid for this task. (i.e. fly direct)
| virtual DtString DtFireCruiseMissileTask::routeName | ( | ) | const [virtual] |
| virtual void DtFireCruiseMissileTask::setSpeed | ( | DtReal | speed | ) | [virtual] |
Set/Get the speed to travel to the target.
| virtual DtReal DtFireCruiseMissileTask::speed | ( | ) | const [virtual] |
| virtual int DtFireCruiseMissileTask::netRepSize | ( | ) | const [virtual] |
Returns the size of the full network representation (control object name included) padded to an 8-byte boundary.
Reimplemented from DtSimTask.
| virtual bool DtFireCruiseMissileTask::setFromNet | ( | const char * | contentBuffer, |
| unsigned | contentSize | ||
| ) | [virtual] |
Fills in the task from the network buffer.
Reimplemented from DtSimTask.
| virtual bool DtFireCruiseMissileTask::setToNet | ( | ) | [virtual] |
Fills in the network buffer (created by base class simTask) with the task contents.
Reimplemented from DtSimTask.
| static DtSimTask* DtFireCruiseMissileTask::creator | ( | ) | [static] |
DtRwString DtFireCruiseMissileTask::myTargetName [protected] |
The object name of the target.
The proximity in which to detonate the missile.
DtRwString DtFireCruiseMissileTask::myRouteName [protected] |
DtRwReal DtFireCruiseMissileTask::mySpeed [protected] |