|
VR-Engage
2.2
|
DtHumanMenuLogic manages context-sensitive menus and commands for the human entity, handling interactions with other entities, task selections, and special actions. It processes menu selections and converts them into appropriate simulation commands.
#include <humanMenuLogic.h>
Public Member Functions | |
| DtHumanMenuLogic () | |
| virtual | ~DtHumanMenuLogic () override |
| virtual bool | initialize (DtPlayerStation *player, DtInitTable &config) override |
| virtual bool | postInitialize () override |
| virtual void | tick (double dt) override |
| virtual void | shutdown () override |
| virtual const char * | type () const override |
| virtual makVre::DtVreMessageResult | handleMenuMessage (makVre::DtVreMessage *msg) |
Public Member Functions inherited from makVre::DtPlayerComponent | |
| DtPlayerComponent () | |
| virtual | ~DtPlayerComponent () |
| virtual void | setName (const std::string &name) |
| virtual const std::string & | name () |
| virtual DtPlayerStation & | player () |
| virtual DtAttributeHandle & | playerAttributeStore () |
| virtual const DtAttributeHandle & | playerAttributeStore () const |
Protected Member Functions | |
| virtual makVre::DtVreMessageResult | handleEntityRealized (makVre::DtVreMessage *msg) |
| virtual makVre::DtVreMessageResult | handleEntityRemoved (makVre::DtVreMessage *msg) |
| virtual void | initSensorViewsList () |
| virtual bool | isSensorCapableAircraft (const DtEntityType &type) const |
| virtual void | taskMoveToViewLocation () |
| virtual void | taskMoveToMyLocation () |
| virtual void | taskMoveToWaypoint () |
| virtual void | taskFireTarget () |
| virtual void | taskSupressFire () |
| virtual void | taskFollowMe () |
| virtual void | disembarkEntity () |
| virtual void | taskDiGuyGesture (const std::string &gestureName) |
| virtual void | taskDiGuyAction (const std::string &actionName) |
Protected Member Functions inherited from makVre::DtPlayerComponent | |
| virtual void | initializeStateAttributes () |
Protected Attributes | |
| std::string | myTaskee |
| std::string | myShootee |
| std::string | myWaypoint |
| DtActionMenuLogic * | myMenuLogic |
| DtHumanControlLogic * | mySimLogic |
| DtVector | myTaskLocation |
Protected Attributes inherited from makVre::DtPlayerComponent | |
| std::string | myName |
| DtInitTable | myConfig |
| DtPlayerStation * | myPlayer |
| makVrv::DtDe * | myDe |
| DtEntityResolver * | myResolver |
| DtAttributeCallbackManager | myAttributeCallbacks |
| makVre::DtHumanMenuLogic::DtHumanMenuLogic | ( | ) |
Default constructor.
|
overridevirtual |
Virtual destructor.
|
overridevirtual |
Initializes the menu logic component.
| player | Pointer to the player station |
| config | Configuration settings for initialization |
Reimplemented from makVre::DtPlayerComponent.
References makVre::DtPlayerComponent::player().
|
overridevirtual |
Performs post-initialization setup.
Reimplemented from makVre::DtPlayerComponent.
|
overridevirtual |
Updates menu logic for the current frame.
| dt | Delta time since the last frame in seconds |
Implements makVre::DtPlayerComponent.
|
overridevirtual |
Cleans up resources when the component is being shut down.
Reimplemented from makVre::DtPlayerComponent.
|
overridevirtual |
Returns the component type identifier.
Returns the type identifier string for this component, which is used by the VR-Engage framework for component identification and management. The returned value matches DtHumanMenuLogicType.
Implements makVre::DtPlayerComponent.
Referenced by isSensorCapableAircraft().
|
virtual |
Handles menu-related messages.
| msg | Pointer to the message being processed |
|
protectedvirtual |
Handles entity realized messages.
| msg | Pointer to the message being processed |
|
protectedvirtual |
Handles entity removed messages.
| msg | Pointer to the message being processed |
|
protectedvirtual |
Initializes the list of available sensor views.
|
protectedvirtual |
Checks if an entity is a sensor-capable aircraft.
| type | Type of the entity to check |
References type().
|
protectedvirtual |
Tasks an entity to move to the current view location.
|
protectedvirtual |
Tasks an entity to move to the player's location.
|
protectedvirtual |
Tasks an entity to move to a specific waypoint.
|
protectedvirtual |
Tasks an entity to fire at a target.
|
protectedvirtual |
Tasks an entity to suppress fire.
|
protectedvirtual |
Tasks an entity to follow the player.
|
protectedvirtual |
Disembarks the player from the current vehicle.
|
protectedvirtual |
Tasks an entity to execute a DI-Guy animated gesture.
| gestureName | Name of the gesture to execute |
Names of available gestures can be found in data\Lifeforms\diguy\gestures.cgf.
|
protectedvirtual |
Tasks an entity to execute a DI-Guy animated action.
| actionName | Name of the action to execute |
Names of available actions can be found in the action table for a given DI-Guy character, in data\Lifeforms\diguy.
|
protected |
Entity ID of the current taskee.
|
protected |
Entity ID of the current target.
|
protected |
Current waypoint identifier.
|
protected |
Pointer to the action menu logic component.
|
protected |
Pointer to the human control logic component.
|
protected |
Current task location in the world.