93 virtual void tick(
double dt)
override;
102 virtual const char*
type()
const override;
Provides handle classes for safe access to attributes.
Type-specific handle class for attributes.
Definition attributeHandle.h:229
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:138
bool mySlewingActive
Flag indicating if slewing is currently active.
Definition slewToCueControl.h:126
virtual ~DtSlewToCueControl() override
Virtual destructor for DtSlewToCueControl.
bool myUpdateNeeded
Flag indicating if an update needs to be sent.
Definition slewToCueControl.h:129
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:120
DtVector32 myLastSentVector
Last sent forward vector for angle change comparison.
Definition slewToCueControl.h:141
DtAttributeHandleType< DtVector > myWeaponLocationAttr
Handle for the weapon location attribute.
Definition slewToCueControl.h:145
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:132
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:135
DtAttributeHandleType< DtTaitBryan > myWeaponOrientationAttr
Handle for the weapon orientation attribute.
Definition slewToCueControl.h:148
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:123
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:44
constexpr const char * updateDeltaAngle
Definition slewToCueControl.h:41
constexpr const char * inputConfigGroup
Definition slewToCueControl.h:35
constexpr const char * slewToCueBinding
Definition slewToCueControl.h:38
constexpr const char * weaponSystemToSlew
Definition slewToCueControl.h:47
constexpr const char * inputConfigFile
Definition slewToCueControl.h:32
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:24
!
Definition glsVreMessageUtil.h:50
constexpr const char * DtSlewToCueControlType
Type identifier for DtSlewToCueControl component.
Definition slewToCueControl.h:53
Defines the DtPlayerComponent base class for VR-Engage role components.