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

DtFireNowRequest represents a request to an entity to fire its weapon at the specified target. More...

Inheritance diagram for DtFireNowRequest:
Inheritance graph
[legend]

List of all members.

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 DtFireNowRequestoperator= (const DtFireNowRequest &orig)
 assignment operator
virtual ~DtFireNowRequest ()
virtual int type () const
 Returns DtFireNowType.
virtual DtSetDataRequestclone (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 DtStringtarget () 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 DtSetDataRequestcreate ()

Protected Attributes

DtRwString myTargetEntity

Detailed Description

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.


Constructor & Destructor Documentation

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]

Member Function Documentation

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.


Member Data Documentation


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)