|
VR-Engage
2.3
|
#include <droneControlLogic.h>
Public Member Functions | |
| DtDroneControlLogic () | |
| virtual | ~DtDroneControlLogic () 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 void | useDrone (const DtEntityIdentifier &id=DtEntityIdentifier::nullId(), const std::string &marking="") |
| virtual void | stopUsingDrone (bool force=false) |
| virtual void | dismissDroneSignalLost () |
| virtual void | stopUsingDroneOrDismissSignalLost () |
| virtual void | setDroneAutopilotMode (const std::string &mode) |
| virtual void | toggleDroneAutopilotMode () |
| virtual void | toggleDronePIDMenu () |
| 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) |
| virtual void | toggleRemoteViewViewport () |
| virtual void | fireSelectedDroneWeapon () |
| virtual bool | operatingDrone () |
| virtual void | landDrone () |
| virtual void | returnToHome () |
| virtual void | setFocusOnEntity (bool val) |
| virtual void | toggleFocusOnEntity () |
| virtual void | setForwardControls (bool val) |
| virtual void | toggleForwardControls () |
Public Member Functions inherited from makVre::DtEntityControlLogic | |
| DtEntityControlLogic () | |
| virtual | ~DtEntityControlLogic () override |
| virtual void | setMouseControlEnabled (bool enabled) |
| virtual bool | isMouseControlEnabled () |
| virtual bool | isMouseControlSupportAllowed () const |
| virtual void | setMouseControlSupportAllowed (bool enable) |
| virtual const std::vector< std::string > & | joystickGroups () const |
| virtual void | sendJoystickCommand (const DtEntityIdentifier &id, const std::string &functionGroup, const std::string &function, double val, bool repeat=false) |
| virtual makVre::DtVreMessageResult | handleReset (makVre::DtVreMessage *message) |
| virtual makVre::DtVreMessageResult | handleCreationStatus (makVre::DtVreMessage *message) |
| virtual void | reset (float val) |
| virtual void | resetInPlace (float val) |
| virtual void | toggleMouseControl (float val) |
| virtual void | enableMouseControl (float val) |
| virtual makVre::DtVreMessageResult | handleFocusMessage (makVre::DtVreMessage *message) |
Public Member Functions inherited from makVre::DtPlayerComponent | |
| DtPlayerComponent () | |
| virtual | ~DtPlayerComponent () |
| 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()) |
| makVre::DtDroneControlLogic::DtDroneControlLogic | ( | ) |
|
overridevirtual |
|
overridevirtual |
Initializes the entity control logic.
| player | Pointer to the player station this component belongs to |
| config | Configuration table with initialization parameters |
Initializes the entity control component with the specified player station and configuration. Registers message handlers and sets up input mappings.
Reimplemented from makVre::DtEntityControlLogic.
References makVre::DtPlayerComponent::player().
|
overridevirtual |
Performs post-initialization setup.
Completes initialization tasks that require other components to be already initialized. This typically includes setting up connections to other components and starting entity control.
Reimplemented from makVre::DtEntityControlLogic.
|
overridevirtual |
Updates the entity control logic each frame.
| dt | Time in seconds since the last update |
Handles per-frame updates for entity control, including processing input and updating entity states. This is called once per frame.
Reimplemented from makVre::DtEntityControlLogic.
|
overridevirtual |
Shuts down the entity control logic.
Cleans up resources, disconnects from input handlers, and releases joystick function-group control. Role occupancy remains until the player station is permanently destroyed.
Reimplemented from makVre::DtEntityControlLogic.
|
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 DtEntityControlLogicType.
Reimplemented from makVre::DtEntityControlLogic.
|
virtual |
|
virtual |
Releases the drone currently in use, closing its remote view and releasing control.
| force | When true, bypasses the normal control and airborne checks so cleanup still happens on shutdown, on death, or while parachuting. |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
overrideprotectedvirtual |
Message handlers.
Handles simulation state update messages
| msg | Pointer to the simulation state message |
Processes simulation state messages, updating the component's understanding of the current entity state in the simulation.
Reimplemented from makVre::DtEntityControlLogic.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |