89 virtual void tick(
double dt)
override;
98 virtual const char*
type()
const override;
virtual void setSteering(double val)
Sets the vehicle's steering value.
virtual void setHook(double val)
Controls the towing hook.
bool myShowInclinometer
Definition driverControlLogic.h:259
virtual bool initialize(makVre::DtPlayerStation *player, makVre::DtInitTable &config) override
Initializes the component with configuration from Lua.
std::string myMainJoystickGroup
Main joystick function group name from configuration.
Definition driverControlLogic.h:238
bool myHasTowHook
Flag indicating if this vehicle has a tow hook.
Definition driverControlLogic.h:256
virtual makVre::DtVreMessageResult handleResourceUpdate(makVre::DtVreMessage *msg)
Handles resource update messages.
virtual void setHeadlights(double val)
Toggles the headlights.
bool myHasDifferentialLock
Flag indicating if this vehicle has a differential lock.
Definition driverControlLogic.h:250
virtual void setPivot(double val)
Controls pivot steering.
bool myCanPivot
Flag indicating if this vehicle is capable of pivot steering.
Definition driverControlLogic.h:244
virtual void steerLeft(float val)
Input handler functions.
virtual void setGearDown(double val)
Shifts down to the previous gear.
virtual void setEngineEnable(double val)
Toggles the engine on/off.
virtual void shutdown() override
Shuts down the component.
virtual void setParkingBrake(double val)
Toggles the parking brake.
virtual const char * type() const override
Returns the component type identifier.
DtDriverControlLogic()
Constructor for DtDriverControlLogic.
DtInputLogic myDriverInputLogic
Input handler logic for processing input device events.
Definition driverControlLogic.h:233
std::string myMarkingText
Marking text for the current entity used in resource subscription.
Definition driverControlLogic.h:230
virtual void setGearUp(double val)
Shifts up to the next gear.
virtual void setDifferentialLock(double val)
Toggles the differential lock.
virtual void sendJoystickMessage(const std::string &function, double val, double delay=0)
Sends a joystick message to the simulation.
virtual void onHookTargetUuidChanged(const std::string &hookTargetUuid)
Callback for changes to the hook target UUID.
virtual ~DtDriverControlLogic() override
Virtual destructor for DtDriverControlLogic.
virtual void setBrake(double val)
Sets the vehicle's brake value.
virtual void steerRight(float val)
Handles right steering input.
virtual void setThrottle(double val)
Sets the vehicle's throttle value.
virtual void tick(double dt) override
Updates the component state.
Component that provides entity control functionality.
Definition entityControlLogic.h:60
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.
constexpr const char * canPivot
Definition driverControlLogic.h:39
constexpr const char * hasTowHook
Definition driverControlLogic.h:42
constexpr const char * hasDifferentialLock
Definition driverControlLogic.h:36
constexpr const char * showInclinometer
Definition driverControlLogic.h:45
Defines export/import macros for the vreCommonComponents library.
#define VRECOMMONCOMPONENTS_DLL
DLL export/import macro for the vreCommonComponents library.
Definition export.h:28
Definition driverControlLogic.h:28
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
constexpr const char * DtDriverControlLogicType
Type identifier for DtDriverControlLogic component.
Definition driverControlLogic.h:50
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
Defines the base class for all VREngage messages.