91 virtual void tick(
double dt)
override;
100 virtual const char*
type()
const override;
Table-based access to Lua state for configuration data.
Definition initializer.h:38
virtual DtPlayerStation & player()
Gets the player station.
DtPlayerComponent()
Constructor.
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
double myUpdateDeltaAngle
Minimum angle change in degrees to trigger an update.
Definition slewToCueControl.h:136
bool mySlewingActive
Flag indicating if slewing is currently active.
Definition slewToCueControl.h:124
virtual ~DtSlewToCueControl() override
Virtual destructor for DtSlewToCueControl.
bool myUpdateNeeded
Flag indicating if an update needs to be sent.
Definition slewToCueControl.h:127
virtual const char * type() const override
Returns the type identifier for this component.
DtInputLogic myInputLogic
Input logic for handling slew control input bindings.
Definition slewToCueControl.h:118
DtVector32 myLastSentVector
Last sent forward vector for angle change comparison.
Definition slewToCueControl.h:139
virtual void activateSlewToCue(double val)
Input handler for activating/deactivating slew-to-cue.
DtSlewToCueControl()
Constructor for DtSlewToCueControl.
double myUpdateRate
Minimum time between slew updates in seconds.
Definition slewToCueControl.h:130
virtual bool initialize(DtPlayerStation *player, DtInitTable &config) override
Initializes the slew-to-cue control component.
double myUpdateTimer
Timer tracking time until next possible update.
Definition slewToCueControl.h:133
virtual void tick(double dt) override
Called every frame to update the slew control state.
std::string myWeaponSystemToSlew
Name of the weapon system to send slew commands to.
Definition slewToCueControl.h:121
virtual void weaponOrientationAttributeUpdated(DtTaitBryan ori)
Callback for weapon orientation attribute changes.
virtual bool postInitialize() override
Performs post-initialization after all components are initialized.
virtual void shutdown() override
Shuts down the slew-to-cue control component.
constexpr const char * updateRate
Definition slewToCueControl.h:42
constexpr const char * updateDeltaAngle
Definition slewToCueControl.h:39
constexpr const char * inputConfigGroup
Definition slewToCueControl.h:33
constexpr const char * slewToCueBinding
Definition slewToCueControl.h:36
constexpr const char * weaponSystemToSlew
Definition slewToCueControl.h:45
constexpr const char * inputConfigFile
Definition slewToCueControl.h:30
Defines export/import macros for the vreCommonComponents library.
#define VRECOMMONCOMPONENTS_DLL
DLL export/import macro for the vreCommonComponents library.
Definition export.h:28
Definition slewToCueControl.h:22
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
constexpr const char * DtSlewToCueControlType
Type identifier for DtSlewToCueControl component.
Definition slewToCueControl.h:51
Defines the DtPlayerComponent base class for VR-Engage role components.