VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Attributes
DtFireCruiseMissileTask Class Reference

DtFireCruiseMissileTask is a task message for launching cruise missiles. More...

Inheritance diagram for DtFireCruiseMissileTask:
Inheritance graph
[legend]

List of all members.

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 DtFireCruiseMissileTaskoperator= (const DtFireCruiseMissileTask &orig)
 assignment operator
virtual ~DtFireCruiseMissileTask ()
virtual int type () const
 returns DtFireCruiseMissileTaskType.
virtual DtSimTaskclone (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 DtSimTaskcreator ()

Protected Attributes

DtRwString myTargetName
 The object name of the target.
DtRwReal myDetonationProximity
 The proximity in which to detonate the missile.
DtRwString myRouteName
DtRwReal mySpeed

Detailed Description

DtFireCruiseMissileTask is a task message for launching cruise missiles.

It contains a target object, route, speed, and detonation proximity.


Constructor & Destructor Documentation

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


Member Function Documentation

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.


Member Data Documentation

The object name of the target.

The proximity in which to detonate the missile.


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)