|
VR-Engage
2.3
|
This component manages loiter task menu attributes and loiter task command dispatch independently of deployable lifecycle management.
#include <droneTaskLogic.h>
Public Member Functions | |
| DtDroneTaskLogic () | |
| virtual | ~DtDroneTaskLogic () override |
| virtual bool | initialize (DtPlayerStation *player, DtInitTable &config) override |
| virtual void | tick (double dt) override |
| virtual const char * | type () const override |
| virtual void | setDroneAutopilotMode (const std::string &mode) |
| virtual void | toggleDroneAutopilotMode () |
| virtual void | cycleDroneLoiterMode () |
| virtual void | cycleDroneLoiterOrbitDirection () |
| virtual void | toggleDroneLoiter () |
| virtual void | setDroneLoiterRelativeAltitudeFromDisplay (const std::string &value) |
| virtual void | setDroneLoiterRelativeHorizontalDistanceFromDisplay (const std::string &value) |
| virtual void | setDroneLoiterRelativeBearingFromDisplay (const std::string &value) |
| virtual void | startDroneLoiter (const DtRwLocationReference &targetLocationReference) |
Public Member Functions inherited from makVre::DtPlayerComponent | |
| DtPlayerComponent () | |
| virtual | ~DtPlayerComponent () |
| virtual bool | postInitialize () |
| virtual void | shutdown () |
| bool | componentReady () const |
| void | setComponentReady (bool ready) |
| virtual DtInitTickStatus | finalizeInitTick (double dt) |
| virtual void | setName (const std::string &name) |
| virtual const std::string & | name () |
| virtual DtPlayerStation & | player () |
| virtual DtAttributeHandle & | playerAttributeStore () |
| virtual const DtAttributeHandle & | playerAttributeStore () const |
| virtual const DtAttributeHandle & | ownshipState () const |
| virtual void | setExtendedData (const std::string &key, const std::string &value, DtEntityIdentifier entity=DtEntityIdentifier::nullId()) |
Private Types | |
| enum | TargetMode { OwnshipTarget , DeployableTarget } |
Private Member Functions | |
| DtEntityIdentifier | resolveTargetEntity () |
| void | stopDroneLoiter (const DtEntityIdentifier &targetId) |
| void | syncWithBackendAutopilotMode () |
| void | restartDroneLoiterIfActive () |
| void | updateDroneLoiterModeAttributes () |
| void | updateLoiterDisplayAttributes () |
Additional Inherited Members | |
Protected Member Functions inherited from makVre::DtPlayerComponent | |
| virtual void | initializeStateAttributes () |
Protected Attributes inherited from makVre::DtPlayerComponent | |
| bool | myComponentReady = true |
| std::string | myName |
| DtInitTable | myConfig |
| DtPlayerStation * | myPlayer |
| makVrv::DtDe * | myDe |
| DtEntityResolver * | myResolver |
| DtAttributeCallbackManager | myAttributeCallbacks |
| DtVreMessageHandlerGroup | myMessageHandlers |
|
private |
| makVre::DtDroneTaskLogic::DtDroneTaskLogic | ( | ) |
|
overridevirtual |
|
overridevirtual |
Initializes the component.
| player | Pointer to the player station that owns this component |
| config | Configuration table with component settings |
Called when the component is first created during player station initialization. This method performs initial setup and calls initializeStateAttributes(). Components should override this method to perform type-specific initialization, but must call the base class implementation first.
Reimplemented from makVre::DtPlayerComponent.
References makVre::DtPlayerComponent::player().
|
overridevirtual |
Updates the component.
| dt | Time in seconds since the last tick |
Called once per frame to update the component's state. All concrete component classes must implement this method.
Implements makVre::DtPlayerComponent.
|
overridevirtual |
Gets the component type identifier.
Returns the unique type identifier for this component class. The type string is used by the component system to identify and instantiate components based on role configuration. Each component class should return a consistent, descriptive type name (e.g., "DtDriverControlLogic", "DtObserverUpdater").
Implements makVre::DtPlayerComponent.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |