100 virtual void tick(
double dt)
override;
115 virtual const char*
type()
const override;
227 const std::string& functionGroup,
228 const std::string& function,
230 bool repeat =
false);
Provides handle classes for safe access to attributes.
Handle class for safe access to attributes.
Definition attributeHandle.h:30
Type-specific handle class for attributes.
Definition attributeHandle.h:229
virtual void enableMouseControl(float val)
Enables mouse control mode.
virtual void resetInPlace(float val)
Resets the entity while maintaining its current position.
DtAttributeHandleType< DtVector > myPositionAttr
Handle for ownship world position.
Definition entityControlLogic.h:311
virtual void setMouseControlEnabled(bool enabled)
Sets whether mouse control is enabled.
virtual void setMouseControlSupportAllowed(bool enable)
Sets whether mouse control support is allowed.
virtual makVre::DtVreMessageResult handleFocusMessage(makVre::DtVreMessage *message)
Handles application focus change messages.
DtInputLogic myCommonInputLogic
Input logic handler for common controls.
Definition entityControlLogic.h:264
DtAttributeHandle myOwnshipAttr
Handle root for ownship attributes.
Definition entityControlLogic.h:279
DtAttributeHandleType< DtVector32 > myRelativeVelocityAttr
Handle for ownship relative velocity.
Definition entityControlLogic.h:339
virtual void tick(double dt) override
Updates the entity control logic each frame.
bool isAirborne() const
Returns true if posture attribute is JUMPING or PARACHUTING.
virtual makVre::DtVreMessageResult handleCreationStatus(makVre::DtVreMessage *message)
Handles player station creation status messages.
virtual makVre::DtVreMessageResult handleReset(makVre::DtVreMessage *message)
Handles reset messages.
DtAttributeHandleType< bool > myHideOccupantsAttr
Handle indicating whether occupants should be hidden.
Definition entityControlLogic.h:351
DtAttributeHandleType< DtDamageState > myDamageStateAttr
Handle for ownship damage state.
Definition entityControlLogic.h:343
bool myMouseControlEnabled
Flag indicating whether mouse control is currently enabled.
Definition entityControlLogic.h:272
DtAttributeHandleType< DtEntityType > myEmbarkedHostTypeAttr
Handle for embarked host entity type.
Definition entityControlLogic.h:291
DtAttributeHandleType< DtVector32 > myAccelerationAttr
Handle for ownship world acceleration.
Definition entityControlLogic.h:327
virtual void shutdown() override
Shuts down the entity control logic.
virtual void reset(float val)
Entity reset methods.
bool requiresControl() const
Returns true if the player is not a spectator and health > 0.
virtual void toggleMouseControl(float val)
Mouse control methods.
virtual bool postInitialize() override
Performs post-initialization setup.
virtual ~DtEntityControlLogic() override
Virtual destructor.
virtual const std::vector< std::string > & joystickGroups() const
Gets the joystick function groups.
virtual bool isMouseControlSupportAllowed() const
Checks if mouse control support is allowed.
DtAttributeHandleType< DtEntityIdentifier > myEmbarkedHostAttr
Handle for embarked host entity identifier.
Definition entityControlLogic.h:287
void showNotification(const QString &text, double duration)
Displays a temporary notification via the player app.
DtAttributeHandleType< unsigned int > myAppearanceAttr
Handle for ownship appearance bits.
Definition entityControlLogic.h:307
DtAttributeHandleType< DtTaitBryan > myOrientationAttr
Handle for ownship world orientation.
Definition entityControlLogic.h:315
DtAttributeHandleType< double > mySpeedAttr
Handle for ownship speed magnitude.
Definition entityControlLogic.h:319
DtAttributeHandleType< DtVector32 > myVelocityAttr
Handle for ownship world velocity.
Definition entityControlLogic.h:323
virtual void takeControlOfPlayerEntity()
Takes control of the player's entity.
virtual const char * type() const override
Returns the component type identifier.
DtAttributeHandleType< bool > myEmbarkedOnAircraftAttr
Handle indicating whether ownship is embarked on an aircraft.
Definition entityControlLogic.h:299
bool myMouseControlSupportAllowed
Flag indicating whether mouse control is allowed for the current entity/mode.
Definition entityControlLogic.h:275
virtual bool isMouseControlEnabled()
Checks if mouse control is currently enabled.
std::string myInputConfigFile
Name of the input configuration file.
Definition entityControlLogic.h:269
virtual makVre::DtVreMessageResult handleSimState(makVre::DtVreMessage *msg)
Message handlers.
virtual bool initialize(DtPlayerStation *player, DtInitTable &config) override
Initializes the entity control logic.
std::vector< std::string > myJoystickFunctionGroups
List of joystick function groups used by this controller.
Definition entityControlLogic.h:259
DtAttributeHandleType< bool > myEmbarkedAttr
Handle for embarked state.
Definition entityControlLogic.h:283
DtEntityControlLogic()
Constructor.
DtAttributeHandleType< std::string > myEmbarkedHostMarkingAttr
Handle for embarked host marking text.
Definition entityControlLogic.h:295
DtAttributeHandleType< std::string > myEmbarkedInSlotAttr
Handle for embarked slot name.
Definition entityControlLogic.h:303
DtAttributeHandleType< DtEntityType > myEntityTypeAttr
Handle for ownship entity type.
Definition entityControlLogic.h:335
virtual void releaseControlOfPlayerEntity()
Releases joystick control of the player's entity.
DtAttributeHandleType< DtVector32 > myRotVelAttr
Handle for ownship rotational velocity.
Definition entityControlLogic.h:331
DtAttributeHandleType< int > mySimStateUpdateIndexAttr
Handle for simulation state update index.
Definition entityControlLogic.h:347
virtual void sendJoystickCommand(const DtEntityIdentifier &id, const std::string &functionGroup, const std::string &function, double val, bool repeat=false)
Sends a joystick command to a controlled entity.
Table-based access to Lua state for configuration data.
Definition initializer.h:38
Base class for all role components in VR-Engage.
Definition playerComponent.h:102
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
constexpr const char * inputConfigFile
Definition entityControlLogic.h:38
constexpr const char * joystickFunctionGroups
Definition entityControlLogic.h:44
constexpr const char * mouseControlSupport
Definition entityControlLogic.h:41
Defines export macros for the VR-Engage Player Station library.
#define PLAYERSTATION_DLL
Definition export.h:24
Definition entityControlLogic.h:31
!
Definition glsVreMessageUtil.h:50
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
constexpr const char * DtEntityControlLogicType
Type identifier constant for DtEntityControlLogic components.
Definition entityControlLogic.h:53
Defines the DtPlayerComponent base class for VR-Engage role components.
Defines the base class for all VREngage messages.