![]() |
VR-Forces 4.0.4 Class Documentation
|
DtHumanSetController handles DtSetDataRequest messages for individual lifeform entities. More...

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 DtSimComponent * | creator (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 DtHumanSetController & | operator= (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. | |
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
| DtHumanSetController::DtHumanSetController | ( | const DtString & | name, |
| DtVrfObject * | owner, | ||
| DtSimManager * | simManager, | ||
| DtComponentDescriptor * | desc = 0, |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
(const DtString&,DtVrfObject*,DtSimManager*,
| name | Reader writer name of this component. |
| owner | The DtVrfObject that owns this component |
| simManager | The simulation manager (provides access to terrain, message interface, simulation clock). |
| desc | The component descriptor used to initialize this component. |
| parentRegistry | Pointer to the parent reader writer registry (the containing object that reads/writes this object). |
| virtual DtHumanSetController::~DtHumanSetController | ( | ) | [virtual] |
destructor
| DtHumanSetController::DtHumanSetController | ( | ) | [protected] |
Default constructor; should not be called.
Here because the compiler will generate an unprotected one otherwise.
| DtHumanSetController::DtHumanSetController | ( | const DtHumanSetController & | orig | ) | [protected] |
copy constructor
| 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.
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*,
| name | Reader writer name of this component. |
| owner | The DtVrfObject that owns this component |
| simManager | The simulation manager (provides access to terrain, message interface, simulation clock). |
| desc | The component descriptor used to initialize this component. |
| parentRegistry | Pointer to the parent reader writer registry (the containing object that reads/writes this object). |
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.