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

Instances of DtLasingMissileTrackController derive from DtMissileMoveToControllerComponent. More...

Inheritance diagram for DtLasingMissileTrackController:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtLasingMissileTrackController (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 constructor
virtual ~DtLasingMissileTrackController ()
 destructor
virtual DtString type () const
 This returns a string from compTypes.h, and identifies the type of component.
virtual bool init ()
 Initializes the component, calls the base class.

Static Public Member Functions

static DtSimComponentcreator (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString&,DtVrfObject*,DtSimManager*,

Protected Member Functions

virtual void setTgtDesignatorCode (const int code)
virtual const int tgtDesignatorCode () const
virtual DtReflectedDesignator * findTarget ()
virtual bool targetTrackable (DtReflectedDesignator *target)
virtual void registerSetLaserCodeRequestMsgCallbacks ()
 Instances of this component will register this callback with their own 'this' pointer as user data with the msg executive requesting notification of lase target tasks.
virtual void processSetLaserCodeRequestCallback (DtSimMessage *msg)
 Calls setLaseTarget() with the string name of the target entity specified in the DtLaseTargetTask message.
virtual bool setupControlPoint ()
 Returns the boolean member data flag myMissilesTargeted, indicating whether or not a target location has been set for the missile.

Static Protected Member Functions

static void setLaserCodeRequestCallback (DtSimMessage *msg, void *usr)
 Callback called when component receives a set laser code request.

Protected Attributes

DtLaserTrackerPSRmyProcessState
 Container for state data associated with this component.

Private Member Functions

 DtLasingMissileTrackController ()
 Not implemented.
 DtLasingMissileTrackController (const DtLasingMissileTrackController &orig)
 Not implemented.
const
DtLasingMissileTrackController
operator= (const DtLasingMissileTrackController &orig)
 Not implemented.

Detailed Description

Instances of DtLasingMissileTrackController derive from DtMissileMoveToControllerComponent.

This component searches for a laser designator of the specified code, and track the missile toward that location. Uses Descriptor Type: DtComponentDescriptor


Constructor & Destructor Documentation

Not implemented.

Not implemented.

DtLasingMissileTrackController::DtLasingMissileTrackController ( const DtString name,
DtVrfObject owner,
DtSimManager simManager,
DtComponentDescriptor desc = 0,
DtReaderWriterRegistry parentRegistry = 0 
)

constructor

destructor


Member Function Documentation

const DtLasingMissileTrackController& DtLasingMissileTrackController::operator= ( const DtLasingMissileTrackController orig) [private]

Not implemented.

virtual DtString DtLasingMissileTrackController::type ( ) const [virtual]

This returns a string from compTypes.h, and identifies the type of component.

Reimplemented from DtMissileMoveToControllerComponent.

Initializes the component, calls the base class.

Reimplemented from DtMissileControllerComponent.

virtual void DtLasingMissileTrackController::setTgtDesignatorCode ( const int  code) [protected, virtual]
virtual const int DtLasingMissileTrackController::tgtDesignatorCode ( ) const [protected, virtual]
virtual DtReflectedDesignator* DtLasingMissileTrackController::findTarget ( ) [protected, virtual]
Returns:
The designator object that will be used as the target. Returns NULL if there is no valid target.
virtual bool DtLasingMissileTrackController::targetTrackable ( DtReflectedDesignator *  target) [protected, virtual]
Returns:
True if the specified designator is trackable by this missile. Checks if the target is within the tracking cone, whether terrain or entities block the view, etc.

Instances of this component will register this callback with their own 'this' pointer as user data with the msg executive requesting notification of lase target tasks.

static void DtLasingMissileTrackController::setLaserCodeRequestCallback ( DtSimMessage msg,
void *  usr 
) [static, protected]

Callback called when component receives a set laser code request.

Calls setLaseTarget() with the string name of the target entity specified in the DtLaseTargetTask message.

virtual bool DtLasingMissileTrackController::setupControlPoint ( ) [protected, virtual]

Returns the boolean member data flag myMissilesTargeted, indicating whether or not a target location has been set for the missile.

Reimplemented from DtMissileMoveToControllerComponent.

static DtSimComponent* DtLasingMissileTrackController::creator ( const DtString name,
DtVrfObject owner,
DtSimManager simManager,
DtComponentDescriptor desc = 0,
DtReaderWriterRegistry parentRegistry = 0 
) [static]

(const DtString&,DtVrfObject*,DtSimManager*,

Parameters:
nameReader writer name of this component.
ownerThe DtVrfObject that owns this component
simManagerThe simulation manager (provides access to terrain, message interface, simulation clock).
descThe component descriptor used to initialize this component.
parentRegistryPointer to the parent reader writer registry (the containing object that reads/writes this object).
(const DtString&,DtVrfObject*,DtSimManager*, DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)

Returns:
New instance of this class.

Reimplemented from DtMissileMoveToControllerComponent.


Member Data Documentation

Container for state data associated with this component.

This state is saved and restored as part of a scenario (or checkpoint).

Reimplemented from DtMissileControllerComponent.


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)