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

Detailed Description

DtPilotMenuLogic manages context-sensitive menus and commands for the pilot entity, handling interactions and menu selections specific to aircraft operations. It processes menu selections and converts them into appropriate simulation commands.

#include <pilotMenuLogic.h>

Inheritance diagram for makVre::DtPilotMenuLogic:
[legend]

Public Member Functions

 DtPilotMenuLogic ()
 
virtual ~DtPilotMenuLogic () 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 DtVreMessageResult handleMenuMessage (DtVreMessage *msg)
 
virtual DtVreMessageResult handleSensorData (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 Attributes

DtPilotSimLogicmyPilotSimLogic
 
- Protected Attributes inherited from makVre::DtPlayerComponent
std::string myName
 
DtInitTable myConfig
 
DtPlayerStationmyPlayer
 
makVrv::DtDe * myDe
 
DtEntityResolvermyResolver
 
DtAttributeCallbackManager myAttributeCallbacks
 

Additional Inherited Members

- Protected Member Functions inherited from makVre::DtPlayerComponent
virtual void initializeStateAttributes ()
 

Constructor & Destructor Documentation

◆ DtPilotMenuLogic()

makVre::DtPilotMenuLogic::DtPilotMenuLogic ( )

Default constructor.

◆ ~DtPilotMenuLogic()

virtual makVre::DtPilotMenuLogic::~DtPilotMenuLogic ( )
overridevirtual

Virtual destructor.

Member Function Documentation

◆ initialize()

virtual bool makVre::DtPilotMenuLogic::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::DtPilotMenuLogic::postInitialize ( )
overridevirtual

Performs post-initialization setup.

Returns
True if post-initialization was successful, false otherwise

Reimplemented from makVre::DtPlayerComponent.

◆ tick()

virtual void makVre::DtPilotMenuLogic::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::DtPilotMenuLogic::shutdown ( )
overridevirtual

Cleans up resources when the component is being shut down.

Reimplemented from makVre::DtPlayerComponent.

◆ type()

virtual const char * makVre::DtPilotMenuLogic::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 DtPilotMenuLogicType.

Implements makVre::DtPlayerComponent.

◆ handleMenuMessage()

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

Handles menu-related messages.

Parameters
msgPointer to the message being processed
Returns
Message processing result

◆ handleSensorData()

virtual DtVreMessageResult makVre::DtPilotMenuLogic::handleSensorData ( DtVreMessage * msg)
virtual

Handles sensor data messages.

Parameters
msgPointer to the message being processed
Returns
Message processing result

Member Data Documentation

◆ myPilotSimLogic

DtPilotSimLogic* makVre::DtPilotMenuLogic::myPilotSimLogic
protected

Pointer to the pilot simulation logic component.


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