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

DtHumanSetController handles DtSetDataRequest messages for individual lifeform entities. More...

Inheritance diagram for DtHumanSetController:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtHumanSetController (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString&,DtVrfObject*,DtSimManager*,
virtual ~DtHumanSetController ()
 destructor
virtual DtString type () const
 Returns a string identifies the class type of component.
virtual void processSetPosture (DtSimMessage *msg)
virtual void processSetWeaponState (DtSimMessage *msg)
virtual void processSetSurrender (DtSimMessage *msg)

Static Public Member Functions

static void setPostureCallback (DtSimMessage *msg, void *usrData)
static void setWeaponStateCallback (DtSimMessage *msg, void *usrData)
static void setSurrenderCallback (DtSimMessage *msg, void *usrData)
static DtSimComponentcreator (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString&,DtVrfObject*,DtSimManager*,

Protected Member Functions

 DtHumanSetController ()
 Default constructor; should not be called.
 DtHumanSetController (const DtHumanSetController &orig)
 copy constructor
const DtHumanSetControlleroperator= (const DtHumanSetController &orig)
 assignment operator
virtual void processSetAppearance (DtSimMessage *msg)
 Override to set weapon and lifeform posture state.
virtual void setRadio (DtSimRadio *radio)
 Overrides this so it can register its interest in the set commands.

Detailed Description

DtHumanSetController handles DtSetDataRequest messages for individual lifeform entities.

Developer Description: Registers for all the set messages that affect an individual life form and updates the entity's state repository as appropriate.

Uses Descriptor Type: DtComponentDescriptor


Constructor & Destructor Documentation

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

(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)

destructor

Default constructor; should not be called.

Here because the compiler will generate an unprotected one otherwise.

copy constructor


Member Function Documentation

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

Returns a string identifies the class type of component.

Type values are defined in compTypes.h. DtSimComponent creation functions are registered with the DtSimComponentFactory using the type values as the key.

Returns:
DtHumanSetControllerType

Reimplemented from DtLocalEntitySetController.

virtual void DtHumanSetController::processSetPosture ( DtSimMessage msg) [virtual]
virtual void DtHumanSetController::processSetWeaponState ( DtSimMessage msg) [virtual]
virtual void DtHumanSetController::processSetSurrender ( DtSimMessage msg) [virtual]
static void DtHumanSetController::setPostureCallback ( DtSimMessage msg,
void *  usrData 
) [static]
static void DtHumanSetController::setWeaponStateCallback ( DtSimMessage msg,
void *  usrData 
) [static]
static void DtHumanSetController::setSurrenderCallback ( DtSimMessage msg,
void *  usrData 
) [static]
static DtSimComponent* DtHumanSetController::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 DtLocalEntitySetController.

Reimplemented in vrfAddSetExample::MyHumanSetController.

const DtHumanSetController& DtHumanSetController::operator= ( const DtHumanSetController orig) [protected]

assignment operator

virtual void DtHumanSetController::processSetAppearance ( DtSimMessage msg) [protected, virtual]

Override to set weapon and lifeform posture state.

Reimplemented from DtLocalEntitySetController.

virtual void DtHumanSetController::setRadio ( DtSimRadio radio) [protected, virtual]

Overrides this so it can register its interest in the set commands.

Reimplemented from DtLocalEntitySetController.

Reimplemented in vrfAddSetExample::MyHumanSetController.


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)