![]() |
VR-Forces 4.0.4 Class Documentation
|
DtFireNowRequest represents a request to an entity to fire its weapon at the specified target. More...

Public Member Functions | |
| DtFireNowRequest () | |
| default constructor | |
| DtFireNowRequest (const DtString &writeName, DtReaderWriterRegistry *parentRegistry=0) | |
| constructor If you have a task 'put' itself, the writeName will preface the task. | |
| DtFireNowRequest (const DtString &writeName, const DtFireNowRequest &orig, DtReaderWriterRegistry *parentRegistry=0) | |
| Copy constructor;. | |
| const DtFireNowRequest & | operator= (const DtFireNowRequest &orig) |
| assignment operator | |
| virtual | ~DtFireNowRequest () |
| virtual int | type () const |
| Returns DtFireNowType. | |
| virtual DtSetDataRequest * | clone (const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const |
| Creates a copy of this fire now task. | |
| virtual DtString | stringRep () const |
| Get a readable string representation of this task. | |
| virtual const DtString & | target () const |
| Get/Set target entity to be fired toward. | |
| virtual void | setTarget (const DtString &entity) |
| virtual int | netRepSize () const |
| Returns the size of the full network representation 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 DtSetDataRequest * | create () |
Protected Attributes | |
| DtRwString | myTargetEntity |
DtFireNowRequest represents a request to an entity to fire its weapon at the specified target.
Rules of engagement as well as range to the target are ignored, and the weapon should be released as soon as possible. This is a set request rather than a task so that it can be performed while another task is being executed without interfearing with it.
default constructor
| DtFireNowRequest::DtFireNowRequest | ( | const DtString & | writeName, |
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
constructor If you have a task 'put' itself, the writeName will preface the task.
| DtFireNowRequest::DtFireNowRequest | ( | const DtString & | writeName, |
| const DtFireNowRequest & | orig, | ||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
Copy constructor;.
| virtual DtFireNowRequest::~DtFireNowRequest | ( | ) | [virtual] |
| const DtFireNowRequest& DtFireNowRequest::operator= | ( | const DtFireNowRequest & | orig | ) |
assignment operator
| virtual int DtFireNowRequest::type | ( | ) | const [virtual] |
Returns DtFireNowType.
Implements DtSetDataRequest.
| virtual DtSetDataRequest* DtFireNowRequest::clone | ( | const DtString & | name, |
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) | const [virtual] |
Creates a copy of this fire now task.
Implements DtSetDataRequest.
| virtual DtString DtFireNowRequest::stringRep | ( | ) | const [virtual] |
Get a readable string representation of this task.
Implements DtSetDataRequest.
| virtual const DtString& DtFireNowRequest::target | ( | ) | const [virtual] |
Get/Set target entity to be fired toward.
| virtual void DtFireNowRequest::setTarget | ( | const DtString & | entity | ) | [virtual] |
| virtual int DtFireNowRequest::netRepSize | ( | ) | const [virtual] |
Returns the size of the full network representation padded to an 8-byte boundary.
Reimplemented from DtSetDataRequest.
| virtual bool DtFireNowRequest::setFromNet | ( | const char * | contentBuffer, |
| unsigned | contentSize | ||
| ) | [virtual] |
Fills in the task from the network buffer.
Reimplemented from DtSetDataRequest.
| virtual bool DtFireNowRequest::setToNet | ( | ) | [virtual] |
Fills in the network buffer (created by base class simTask) with the task contents.
Reimplemented from DtSetDataRequest.
| static DtSetDataRequest* DtFireNowRequest::create | ( | ) | [static] |
DtRwString DtFireNowRequest::myTargetEntity [protected] |