|
VR-Engage
2.2
|
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>
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 DtPlayerStation & | player () |
| virtual DtAttributeHandle & | playerAttributeStore () |
| virtual const DtAttributeHandle & | playerAttributeStore () const |
Protected Attributes | |
| DtPilotSimLogic * | myPilotSimLogic |
Protected Attributes inherited from makVre::DtPlayerComponent | |
| std::string | myName |
| DtInitTable | myConfig |
| DtPlayerStation * | myPlayer |
| makVrv::DtDe * | myDe |
| DtEntityResolver * | myResolver |
| DtAttributeCallbackManager | myAttributeCallbacks |
Additional Inherited Members | |
Protected Member Functions inherited from makVre::DtPlayerComponent | |
| virtual void | initializeStateAttributes () |
| makVre::DtPilotMenuLogic::DtPilotMenuLogic | ( | ) |
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 DtPilotMenuLogicType.
Implements makVre::DtPlayerComponent.
|
virtual |
Handles menu-related messages.
| msg | Pointer to the message being processed |
|
virtual |
Handles sensor data messages.
| msg | Pointer to the message being processed |
|
protected |
Pointer to the pilot simulation logic component.