VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtHumanMenuLogic Class Reference

Detailed Description

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>

Inheritance diagram for makVre::DtHumanMenuLogic:
[legend]

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 DtPlayerStationplayer ()
 
virtual DtAttributeHandleplayerAttributeStore ()
 
virtual const DtAttributeHandleplayerAttributeStore () 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
 
DtActionMenuLogicmyMenuLogic
 
DtHumanControlLogicmySimLogic
 
DtVector myTaskLocation
 
- Protected Attributes inherited from makVre::DtPlayerComponent
std::string myName
 
DtInitTable myConfig
 
DtPlayerStationmyPlayer
 
makVrv::DtDe * myDe
 
DtEntityResolvermyResolver
 
DtAttributeCallbackManager myAttributeCallbacks
 

Constructor & Destructor Documentation

◆ DtHumanMenuLogic()

makVre::DtHumanMenuLogic::DtHumanMenuLogic ( )

Default constructor.

◆ ~DtHumanMenuLogic()

virtual makVre::DtHumanMenuLogic::~DtHumanMenuLogic ( )
overridevirtual

Virtual destructor.

Member Function Documentation

◆ initialize()

virtual bool makVre::DtHumanMenuLogic::initialize ( DtPlayerStation * player,
DtInitTable & config )
overridevirtual

Initializes the menu logic component.

Parameters
playerPointer to the player station
configConfiguration settings for initialization
Returns
True if initialization was successful, false otherwise

Reimplemented from makVre::DtPlayerComponent.

References makVre::DtPlayerComponent::player().

◆ postInitialize()

virtual bool makVre::DtHumanMenuLogic::postInitialize ( )
overridevirtual

Performs post-initialization setup.

Returns
True if post-initialization was successful, false otherwise

Reimplemented from makVre::DtPlayerComponent.

◆ tick()

virtual void makVre::DtHumanMenuLogic::tick ( double dt)
overridevirtual

Updates menu logic for the current frame.

Parameters
dtDelta time since the last frame in seconds

Implements makVre::DtPlayerComponent.

◆ shutdown()

virtual void makVre::DtHumanMenuLogic::shutdown ( )
overridevirtual

Cleans up resources when the component is being shut down.

Reimplemented from makVre::DtPlayerComponent.

◆ type()

virtual const char * makVre::DtHumanMenuLogic::type ( ) const
overridevirtual

Returns the component type identifier.

Returns
String identifier for this component type

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

◆ handleMenuMessage()

virtual makVre::DtVreMessageResult makVre::DtHumanMenuLogic::handleMenuMessage ( makVre::DtVreMessage * msg)
virtual

Handles menu-related messages.

Parameters
msgPointer to the message being processed
Returns
Message processing result

◆ handleEntityRealized()

virtual makVre::DtVreMessageResult makVre::DtHumanMenuLogic::handleEntityRealized ( makVre::DtVreMessage * msg)
protectedvirtual

Handles entity realized messages.

Parameters
msgPointer to the message being processed
Returns
Message processing result

◆ handleEntityRemoved()

virtual makVre::DtVreMessageResult makVre::DtHumanMenuLogic::handleEntityRemoved ( makVre::DtVreMessage * msg)
protectedvirtual

Handles entity removed messages.

Parameters
msgPointer to the message being processed
Returns
Message processing result

◆ initSensorViewsList()

virtual void makVre::DtHumanMenuLogic::initSensorViewsList ( )
protectedvirtual

Initializes the list of available sensor views.

◆ isSensorCapableAircraft()

virtual bool makVre::DtHumanMenuLogic::isSensorCapableAircraft ( const DtEntityType & type) const
protectedvirtual

Checks if an entity is a sensor-capable aircraft.

Parameters
typeType of the entity to check
Returns
True if the entity is a sensor-capable aircraft, false otherwise

References type().

◆ taskMoveToViewLocation()

virtual void makVre::DtHumanMenuLogic::taskMoveToViewLocation ( )
protectedvirtual

Tasks an entity to move to the current view location.

◆ taskMoveToMyLocation()

virtual void makVre::DtHumanMenuLogic::taskMoveToMyLocation ( )
protectedvirtual

Tasks an entity to move to the player's location.

◆ taskMoveToWaypoint()

virtual void makVre::DtHumanMenuLogic::taskMoveToWaypoint ( )
protectedvirtual

Tasks an entity to move to a specific waypoint.

◆ taskFireTarget()

virtual void makVre::DtHumanMenuLogic::taskFireTarget ( )
protectedvirtual

Tasks an entity to fire at a target.

◆ taskSupressFire()

virtual void makVre::DtHumanMenuLogic::taskSupressFire ( )
protectedvirtual

Tasks an entity to suppress fire.

◆ taskFollowMe()

virtual void makVre::DtHumanMenuLogic::taskFollowMe ( )
protectedvirtual

Tasks an entity to follow the player.

◆ disembarkEntity()

virtual void makVre::DtHumanMenuLogic::disembarkEntity ( )
protectedvirtual

Disembarks the player from the current vehicle.

◆ taskDiGuyGesture()

virtual void makVre::DtHumanMenuLogic::taskDiGuyGesture ( const std::string & gestureName)
protectedvirtual

Tasks an entity to execute a DI-Guy animated gesture.

Parameters
gestureNameName of the gesture to execute

Names of available gestures can be found in data\Lifeforms\diguy\gestures.cgf.

◆ taskDiGuyAction()

virtual void makVre::DtHumanMenuLogic::taskDiGuyAction ( const std::string & actionName)
protectedvirtual

Tasks an entity to execute a DI-Guy animated action.

Parameters
actionNameName 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.

Member Data Documentation

◆ myTaskee

std::string makVre::DtHumanMenuLogic::myTaskee
protected

Entity ID of the current taskee.

◆ myShootee

std::string makVre::DtHumanMenuLogic::myShootee
protected

Entity ID of the current target.

◆ myWaypoint

std::string makVre::DtHumanMenuLogic::myWaypoint
protected

Current waypoint identifier.

◆ myMenuLogic

DtActionMenuLogic* makVre::DtHumanMenuLogic::myMenuLogic
protected

Pointer to the action menu logic component.

◆ mySimLogic

DtHumanControlLogic* makVre::DtHumanMenuLogic::mySimLogic
protected

Pointer to the human control logic component.

◆ myTaskLocation

DtVector makVre::DtHumanMenuLogic::myTaskLocation
protected

Current task location in the world.


The documentation for this class was generated from the following file: