|
VR-Engage
2.3
|
DtLauncherControlLogic handles shoulder-mounted and tripod-mounted launcher operations including firing, missile tracking, target locking, and indirect fire coordinate management. It publishes missile state to the playerAttributeStore so that DtRemoteSensorViewLogic can manage the scope view accordingly.
#include <launcherControlLogic.h>
Public Member Functions | |
| DtLauncherControlLogic () | |
| virtual | ~DtLauncherControlLogic () override |
| virtual bool | initialize (DtPlayerStation *player, DtInitTable &config) override |
| virtual void | tick (double dt) override |
| virtual void | shutdown () override |
| virtual const char * | type () const override |
| virtual void | toggleMissileLauncher () |
| virtual void | useLauncher (const DtEntityIdentifier &id) |
| virtual void | exitLauncher () |
| virtual void | fireMissile (const std::string &rangeId="") |
| virtual void | firstStageTrigger (double val) |
| virtual void | toggleMissileAttackMode (double val) |
| virtual void | toggleMissileTargetMode (double val) |
| virtual void | toggleMissileFireAndForget (double val) |
| virtual void | detachFromMissile (double val) |
| virtual void | setIndirectFireCoordinate (const std::string &coordinate) |
| virtual void | clearIndirectTarget () |
| virtual DtEntityIdentifier | launcherId () |
Public Member Functions inherited from makVre::DtEntityControlLogic | |
| DtEntityControlLogic () | |
| virtual | ~DtEntityControlLogic () override |
| virtual bool | postInitialize () 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 | handleSimState (makVre::DtVreMessage *msg) |
| 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::DtLauncherControlLogic::DtLauncherControlLogic | ( | ) |
|
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 |
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 |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
References makVre::SHOULDER_MOUNTED.
|
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 |