99 virtual void tick(
double dt)
override;
109 virtual const char*
type()
const override;
116 virtual void yaw(
double val);
165 virtual void zoom(
double value);
Type-specific handle class for attributes.
Definition attributeHandle.h:229
float myYawInput
Current yaw input value.
Definition commanderHatchControlLogic.h:207
void onBinocularsChanged(bool usingBinoculars)
Callback for changes to the "usingBinoculars" state attribute.
DtAttributeHandleType< double > myObserverPitchHandle
Attribute handle storing the observer's current pitch (elevation) angle in radians.
Definition commanderHatchControlLogic.h:224
float myPitchInput
Current pitch input value.
Definition commanderHatchControlLogic.h:212
virtual void toggleBinoculars(double val)
Toggles binocular use on or off.
DtAttributeHandleType< Equipment > myCurrentEquipmentHandle
Attribute handle storing the equipment the commander currently has equipped.
Definition commanderHatchControlLogic.h:232
virtual void zoomIn(double value)
Increases binocular zoom level.
virtual bool postInitialize() override
Performs post-initialization setup.
virtual void tick(double dt) override
Updates the component state.
virtual const char * type() const override
Returns the component type identifier.
DtAttributeHandleType< double > myViewMagnificationHandle
Attribute handle storing the current view magnification level for input scaling.
Definition commanderHatchControlLogic.h:216
virtual void zoom(double value)
Combined input handler for binocular zoom.
DtAttributeHandleType< bool > myIsNVGHandle
Attribute handle indicating whether night vision goggles are active.
Definition commanderHatchControlLogic.h:240
std::string myMainControlGroup
Main control group name from configuration.
Definition commanderHatchControlLogic.h:202
virtual void pitch(double val)
Input handler for vertical head tilt (pitch)
virtual void zoomOut(double value)
Reduces binocular zoom level.
DtAttributeHandleType< double > myObserverYawHandle
Attribute handle storing the observer's current yaw (azimuth) angle in radians.
Definition commanderHatchControlLogic.h:220
virtual void toggleNVG(double val)
Toggles night vision goggles (NVG) on or off.
virtual bool initialize(makVre::DtPlayerStation *player, makVre::DtInitTable &config) override
Initializes the component with configuration from Lua.
virtual void yaw(double val)
Input handler for horizontal head rotation (yaw)
virtual void setBinocularsControls(bool enabled)
Enables or disables binocular-specific input controls.
virtual void shutdown() override
Shuts down the component.
DtCommanderHatchControlLogic()
Constructor for DtCommanderHatchControlLogic.
DtAttributeHandleType< bool > myUsingBinocularsHandle
Attribute handle indicating whether the commander is currently using binoculars.
Definition commanderHatchControlLogic.h:236
DtInputLogic myInputLogic
Input handler logic for processing input device events.
Definition commanderHatchControlLogic.h:197
DtAttributeHandleType< double > myMaxViewMagnificationHandle
Attribute handle storing the maximum allowed view magnification.
Definition commanderHatchControlLogic.h:228
virtual ~DtCommanderHatchControlLogic() override
Virtual destructor for DtCommanderHatchControlLogic.
virtual DtVreMessageResult handleMenuMessage(makVre::DtVreMessage *msg)
Handles menu action messages.
Component that provides entity control functionality.
Definition entityControlLogic.h:64
Table-based access to Lua state for configuration data.
Definition initializer.h:38
virtual DtPlayerStation & player()
Gets the player station.
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Defines the logic for controlling entities in VR-Engage.
Defines export/import macros for the vreCommonComponents library.
#define VRECOMMONCOMPONENTS_DLL
DLL export/import macro for the vreCommonComponents library.
Definition export.h:28
Definition commanderHatchControlLogic.h:24
!
Definition glsVreMessageUtil.h:50
constexpr const char * DtCommanderHatchControlLogicType
Type identifier for DtCommanderHatchControlLogic component.
Definition commanderHatchControlLogic.h:37
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
Common enumeration definitions used throughout the VREngage system.