VR-Engage  2.3
Loading...
Searching...
No Matches
chooseRoleState.h
Go to the documentation of this file.
1/******************************************************************************
2** Copyright (c) 2025 MAK Technologies
3** All rights reserved.
4******************************************************************************/
5
6//! \file chooseRoleState.h
7//! \brief Defines the DtChooseRoleState class for entity and role selection
8//!
9//! This file contains the DtChooseRoleState class which represents the application
10//! state where users select entities to control or create new entities. It manages
11//! the UI interactions for role selection and coordinates with other components
12//! to transition into engaged gameplay.
13
14#pragma once
15
16#include "entityResolver.h"
18
20
22
24#include <vrvCore/DtUniqueID.h>
25
26namespace makVrv
27{
28class DtObserverViewsWidget;
29class DtObserverViewsWidgetLogic;
30} // namespace makVrv
31
32namespace makVre
33{
34//! \brief Forward declaration of the player station application class
36
37//! \brief Forward declaration of the player selection dialog
38class DtChoosePlayerDialog;
39
40//! \brief Forward declaration of the initializer class
41class DtInitializer;
42
43//! \brief Forward declaration of the role selection panel
45
46//! \brief Forward declaration of the role selection page
48
49//! \brief Forward declaration of the role assignment message
51
52//! \brief Application state for selecting entities and roles
53//!
54//! DtChooseRoleState represents the application state where users can
55//! select existing entities to control or create new entities. It manages
56//! the UI interactions, entity creation, and transitions to the engaged state.
58{
59public:
60 //! \brief Constructor
61 //! \param app Reference to the player station application
62 //!
63 //! Creates a new role selection state associated with the given application.
65
66 //! \brief Virtual destructor
67 //!
68 //! Ensures proper cleanup of the role selection state resources.
69 virtual ~DtChooseRoleState() override;
70
71 //! \brief Called when the state is entered
72 //! \param args Pointer to arguments from the previous state
73 //!
74 //! Sets up the role selection UI and observer views, registers message handlers,
75 //! initializes the state's data structures, and determines whether ownership
76 //! transfer support is active for the current session before installing the
77 //! ownership-specific handlers. This is called when the player first enters
78 //! the role selection state.
79 virtual void onEnter(const DtPlayerStationStateArgs* args) override;
80
81 //! \brief Called when the state is exited
82 //!
83 //! Cleans up resources, hides UI elements, clears any pending ownership
84 //! workflow, and unregisters the message handlers that were installed for
85 //! this state. This is called when the player leaves the role selection
86 //! state.
87 virtual void onExit() override;
88
89 //! \brief Updates the state each frame
90 //! \param dt Time in seconds since the last update
91 //!
92 //! Handles per-frame processing, such as updating entity status, managing
93 //! user interactions, handling deferred operations, and advancing
94 //! ownership-transfer pending or idle-release state when that feature is
95 //! active for the current session.
96 virtual void tick(double dt) override;
97
98 //! \brief Called when the state becomes the topmost state again
99 //!
100 //! Restores UI visibility and updates the panel when this state is exposed
101 //! after another state has been popped from the stack.
102 virtual void onExposed() override;
103
104 //! \brief Called when another state is pushed on top of this one
105 //!
106 //! Hides UI elements and pauses processing while this state is covered
107 //! by another state on the stack.
108 virtual void onStacked() override;
109
110 //! \brief Entity creation methods
111 //! @{
112
113 //! \brief Sets whether a new entity should be created
114 //! \param newNotExisting True to create a new entity, false to use an existing one
115 //!
116 //! Determines whether the player will create a new entity or control an existing one.
117 virtual void setCreatingOwnship(bool newNotExisting);
118
119 //! \brief Sets the name for a new entity
120 //! \param name Name to assign to the new entity
121 //!
122 //! Sets the display name for the entity being created.
123 virtual void setNewEntityName(const std::string& name);
124
125 //! \brief Sets the type for a new entity
126 //! \param type Type identifier for the new entity
127 //!
128 //! Sets the type of entity to create (e.g., aircraft, vehicle, infantry).
129 virtual void setNewEntityType(const DtEntityType& type);
130
131 //! \brief Sets the force type for a new entity
132 //! \param force Force type for the new entity (friendly, hostile, etc.)
133 //!
134 //! Sets the force affiliation for the entity being created.
135 virtual void setNewEntityForce(const DtForceType& force);
136
137 //! \brief Sets the location for a new entity
138 //! \param location 3D position for the new entity (at ground level)
139 //!
140 //! Sets the ground location where the entity will be created.
141 virtual void setNewEntityLocation(const DtVector& location);
142
143 //! \brief Sets the location and altitude for a new entity
144 //! \param location 3D position for the new entity (ground reference)
145 //! \param altitude Height above ground in meters
146 //!
147 //! Sets both the ground position and altitude for the entity being created.
148 virtual void setNewEntityLocationAtAltitude(const DtVector& location, double altitude);
149
150 //! \brief Sets whether the entity should be clamped to terrain
151 //! \param clamp True to clamp to terrain, false otherwise
152 //!
153 //! Determines whether the entity should be constrained to follow terrain contours.
154 virtual void setNewEntityClamp(bool clamp);
155
156 //! \brief Sets the heading for a new entity
157 //! \param headingInDegrees Heading in degrees (0-360, clockwise from north)
158 //!
159 //! Sets the initial heading for the entity being created.
160 //! This assumes the location has already been set.
161 virtual void setNewEntityHeading(const double headingInDegrees);
162
163 //! \brief Sets the pitch for a new entity
164 //! \param pitch Pitch angle in degrees
165 //!
166 //! Sets the initial pitch angle for the entity being created.
167 virtual void setNewEntityPitch(const double pitch);
168
169 //! \brief Sets a parent entity for embarking
170 //! \param host Entity identifier of the host/parent entity
171 //! \param offset Relative offset from the host entity's position
172 //!
173 //! Specifies that the new entity should be created as embarked on another entity.
174 virtual void setNewEntityEmbarkedOn(const DtEntityIdentifier& host, const DtVector& offset);
175 //! @}
176
177 //! \brief Gets the type of the entity being created
178 //! \return Reference to the entity type
179 //!
180 //! Retrieves the entity type that has been set for creation.
181 virtual const DtEntityType& getNewEntityType() { return myNewEntityDef.type; }
182
183 //! \brief Gets the identifier of the created entity
184 //! \return Reference to the entity identifier
185 //!
186 //! Retrieves the unique identifier of the entity that was created.
187 //! Only valid after entity creation is complete.
188 virtual const DtEntityIdentifier& getCreatedOwnshipEntity() const;
189
190 //! \brief Gets the element ID of the created entity
191 //! \return Element ID in the display engine
192 //!
193 //! Retrieves the display engine element ID for the created entity.
194 //! Only valid after entity creation is complete.
195 virtual makVrv::DtElementID getCreatedOwnshipElement() const;
196
197 //! \brief Updates the player station with role information
198 //! \param role Name of the role to play
199 //! \param entityId Identifier of the entity to control (null for new entities)
200 //! \param displayLayout Name of the display layout to use
201 //!
202 //! Sets up the player station with the selected role, entity, and display layout
203 //! in preparation for transitioning to the engaged state.
204 virtual void playStation(const std::string& role,
205 const DtEntityIdentifier& entityId = DtEntityIdentifier::nullId(),
206 const std::string& displayLayout = "");
207
208 //! \brief Initiates engagement with the selected entity
209 //! \param asSpectator True to engage as a spectator, false as a controller
210 //!
211 //! Transitions from the role selection state to the engaged state,
212 //! starting gameplay with the selected entity and role.
213 virtual void play(bool asSpectator = false);
214
215 //! \brief Handles role assignment messages
216 //! \param message Pointer to the role assignment message
217 //! \return Message handling result
218 //!
219 //! Processes messages related to assigning roles to players,
220 //! which may come from network or local sources.
222
223 //! \brief Controls visibility of the observer views panel
224 //! \param visible True to show the panel, false to hide it
225 //!
226 //! Shows or hides the observer views panel that provides
227 //! alternative viewpoints of the simulated environment.
228 virtual void setObserverViewsPanelVisible(bool visible);
229
230protected:
231 //! \brief Controls visibility of the UI components
232 //! \param visible True to show UI elements, false to hide them
233 //!
234 //! Manages the visibility of the choose role page and entity panel components.
235 //! Used when entering/exiting the state or when stacked/exposed.
236 virtual void setUIVisibility(bool visible);
237
238 //! \brief Resets the entity panel to its default state
239 //!
240 //! Clears all selections and inputs in the entity panel,
241 //! preparing it for a fresh interaction.
242 virtual void resetEntityPanel();
243
244 //! \brief Structure containing definition data for a new entity
245 //!
246 //! Contains all the parameters needed to create a new entity in the simulation,
247 //! including its type, position, orientation, and attributes.
249 {
250 //! \brief Constructor that initializes with default values
252 : force(DtForceOther)
253 , clamp(true)
254 , altitude(0.0)
255 , heading(0.0)
256 , pitch(0.0)
257 {
258 }
259
260 std::string name; //!< Display name for the entity
261 DtEntityType type; //!< Type identifier for the entity
262 DtForceType force; //!< Force affiliation (friendly, hostile, etc.)
263 DtVector location; //!< Geocentric position at ground level
264 bool clamp; //!< Whether to clamp to terrain
265 double altitude; //!< Height above ground in meters
266 DtVector position; //!< Geocentric position at specified altitude
267 double heading; //!< Heading in degrees (0-360, clockwise from north)
268 double pitch; //!< Pitch angle in degrees
269 };
270
271 //! \brief Structure defining a player station configuration
272 //!
273 //! Contains the information needed to set up a player station,
274 //! including which entity to control and how to display it.
276 {
277 DtEntityIdentifier entityId; //!< Identifier of the entity to control
278 std::string stationName; //!< Name of the role or station
279 std::string displayLayout; //!< Name of the display layout to use
280 DtUUID entityUuid; //!< UUID string of the entity; used by ownership acquire requests
281 };
282
283 //! \brief Structure for entity attachment configuration
284 //!
285 //! Contains the configuration for attaching to an existing entity,
286 //! including role and display layout information.
288 {
289 std::string name; //!< Name of the entity to attach to
290 std::string displayLayout; //!< Display layout to use
291 std::string role; //!< Role to play in the entity
292 bool spectator; //!< Whether to attach as a spectator
293 };
294
295 //! \brief Message handlers
296 //! @{
297
298 //! \brief Handles messages about newly created ownship entities
299 //! \param message Pointer to the message about the new entity
300 //! \return Message handling result
302
303 //! \brief Handles messages about entities being realized in the simulation
304 //! \param message Pointer to the entity realization message
305 //! \return Message handling result
307
308 //! \brief Handles messages about application mode changes
309 //! \param message Pointer to the application mode message
310 //! \return Message handling result
312
313 //! \brief Handles escape key press messages
314 //! \param msg Pointer to the key press message
315 //! \return Message handling result
317
318 //! \brief Handles back button click messages
319 //! \param msg Pointer to the button click message
320 //! \return Message handling result
322 //! \brief Handles choose role button click messages
323 //! \param msg Pointer to the button click message
324 //! \return Message handling result
326
327 //! \brief Handles VRF rewind messages
328 //! \param msg Pointer to the rewind message
329 //! \return Message handling result
331 //! @}
332
333 //! \brief Entity management methods
334 //! @{
335
336 //! \brief Creates a new entity in the simulation
337 //!
338 //! Uses the information in myNewEntityDef to create a new entity
339 //! in the simulation and start tracking its realization.
340 virtual void createNewEntity();
341
342 //! \brief Updates an existing new entity
343 //! \return True if the update was successful, false otherwise
344 //!
345 //! Applies changes from myNewEntityDef to the entity that is
346 //! currently being created or modified.
347 virtual bool updateNewEntity();
348
349 //! \brief Destroys a new entity that was being created
350 //!
351 //! Removes the entity that was being created from the simulation.
352 //! Typically called when canceling entity creation or during cleanup.
353 virtual void destroyNewEntity();
354
355 //! \brief Checks if a new ownship entity has been realized
356 //! \return True if the entity exists and is ready, false otherwise
357 //!
358 //! Determines whether a newly created entity has been fully
359 //! realized in the simulation and is ready for interaction.
360 virtual bool haveNewRealizedOwnshipEntity() const;
361
362 //! \brief Called when a new ownship entity is realized
363 //!
364 //! Handles the completion of entity creation, transitioning
365 //! to the next step in the engagement process.
366 virtual void onNewOwnshipRealized();
367 //! @}
368
369 //! \brief Gets the display layout for a station
370 //! \param station Station definition to get layout for
371 //! \return Name of the display layout to use
372 //!
373 //! Determines the appropriate display layout for the given station,
374 //! using defaults if necessary.
375 virtual std::string getDisplayLayout(const StationDefinition& station) const;
376
377 //! \brief Validates an entity definition
378 //! \param def Entity definition to validate
379 //! \param error Optional pointer to receive error message
380 //! \return True if the definition is valid, false otherwise
381 //!
382 //! Checks whether an entity definition contains all the required
383 //! information to create a valid entity.
384 virtual bool verifyEntityDefinition(EntityDefinition const& def, QString* error = NULL) const;
385
386 //! \brief Validates a station definition
387 //! \param def Station definition to validate
388 //! \param error Optional pointer to receive error message
389 //! \return True if the definition is valid, false otherwise
390 //!
391 //! Checks whether a station definition contains all the required
392 //! information to set up a player station.
393 virtual bool verifyStationDefinition(StationDefinition const& def, QString* error = NULL) const;
394
395 //! \brief Publishes OwnershipPlayerDisengagedMessage to the connector.
396 //!
397 //! Tells the connector that the owned entity is now idle (player disengaged).
398 //! The connector will divest immediately if another station is engaged,
399 //! otherwise start the idle timeout. No-op when no entity is currently owned.
401
402 //! \brief Publishes OwnershipPlayerEngagedMessage to the connector.
403 //!
404 //! Tells the connector to cancel a pending idle divest only when this
405 //! state re-engages the entity awaiting hand-back. Called only when a
406 //! non-spectator engagement begins.
408
409 //! \brief Handles OwnershipDivestStartedMessage from the connector.
410 //!
411 //! Logs the connector-initiated divest. No state tracking is needed
412 //! because the connector owns the full divest lifecycle.
413 //!
414 //! \param message Pointer to the OwnershipDivestStartedMessage.
415 //! \return HANDLED
417
418 //! \brief Flag indicating whether to create a new entity
420
421 //! \brief Flag indicating that entity creation is in progress
423
424 //! \brief Flag indicating that a new entity has been created
426
427 //! \brief Definition of the entity to create
429
430 //! \brief Definition of the station to set up
432
433 //! \brief Identifier of the host entity for embarking
434 DtEntityIdentifier myHostId;
435
436 //! \brief Offset from the host entity for embarking
437 DtVector myHostOffset;
438
439 //! \brief Flags indicating which entity properties have changed
440 //!
441 //! Used to track which properties of the entity definition have been
442 //! modified and need to be updated in the simulation.
444 {
445 DirtyName = 1 << 0, //!< Entity name has changed
446 DirtyType = 1 << 1, //!< Entity type has changed
447 DirtyForce = 1 << 2, //!< Entity force type has changed
448 DirtyPosition = 1 << 3, //!< Entity position has changed
449 DirtyHeading = 1 << 4, //!< Entity heading has changed
450 DirtyPitch = 1 << 5, //!< Entity pitch has changed
451 DirtyRoll = 1 << 6 //!< Entity roll has changed
452 };
453
454 //! \brief Bitmap of dirty flags for the entity definition
456
457 //! \brief Pointer to the entity selection panel UI
459
460 //! \brief Shared pointer to the role selection page
461 std::shared_ptr<DtVreChooseRolePage> myChooseRolePage;
462
463 //! \brief Shared pointer to the entity attachment configuration
464 std::shared_ptr<AttachToEntity> myAttachToEntity;
465
466 //! \brief Handle for the global entity resolver.
467 //! \vreAttrKey{DtEntityResolver}
469
470 //! \brief True when ownership transfer flows are enabled for this session.
471 //!
472 //! Set during onEnter() after checking that the station is joined to a
473 //! session and is running an ownship-capable backend. Gates registration
474 //! of ownership-transfer handlers and the acquire/divest workflow.
476
477 int myReengageTries = 0; //!< Number of tries to re-engage after a failed engagement attempt
478};
479
480} // namespace makVre
Provides handle classes for safe access to attributes.
Type-specific handle class for attributes.
Definition attributeHandle.h:229
UI panel for selecting and engaging with entities and roles.
Definition chooseRolePanel.h:60
virtual bool verifyEntityDefinition(EntityDefinition const &def, QString *error=NULL) const
Validates an entity definition.
virtual void createNewEntity()
Entity management methods.
virtual void setNewEntityLocation(const DtVector &location)
Sets the location for a new entity.
virtual makVrv::DtElementID getCreatedOwnshipElement() const
Gets the element ID of the created entity.
virtual bool updateNewEntity()
Updates an existing new entity.
bool myHaveNewEntity
Flag indicating that a new entity has been created.
Definition chooseRoleState.h:425
DtEntityIdentifier myHostId
Identifier of the host entity for embarking.
Definition chooseRoleState.h:434
virtual ~DtChooseRoleState() override
Virtual destructor.
virtual DtVreMessageResult handleAssignRolePlayer(DtVreMessage *message)
Handles role assignment messages.
virtual void setNewEntityType(const DtEntityType &type)
Sets the type for a new entity.
bool myAwaitingNewRealizedEntity
Flag indicating that entity creation is in progress.
Definition chooseRoleState.h:422
virtual void playStation(const std::string &role, const DtEntityIdentifier &entityId=DtEntityIdentifier::nullId(), const std::string &displayLayout="")
Updates the player station with role information.
virtual void onExposed() override
Called when the state becomes the topmost state again.
virtual void setCreatingOwnship(bool newNotExisting)
Entity creation methods.
virtual bool haveNewRealizedOwnshipEntity() const
Checks if a new ownship entity has been realized.
virtual void setNewEntityPitch(const double pitch)
Sets the pitch for a new entity.
int myDirtyBits
Bitmap of dirty flags for the entity definition.
Definition chooseRoleState.h:455
bool myWantNewEntity
Flag indicating whether to create a new entity.
Definition chooseRoleState.h:419
virtual void setNewEntityLocationAtAltitude(const DtVector &location, double altitude)
Sets the location and altitude for a new entity.
std::shared_ptr< DtVreChooseRolePage > myChooseRolePage
Shared pointer to the role selection page.
Definition chooseRoleState.h:461
DtAttributeHandleType< DtEntityResolver * > myEntityResolverAttr
Handle for the global entity resolver.
Definition chooseRoleState.h:468
virtual void tick(double dt) override
Updates the state each frame.
virtual DtVreMessageResult handleNewOwnshipCreated(DtVreMessage *message)
Message handlers.
virtual void startOwnershipIdleTimer()
Publishes OwnershipPlayerDisengagedMessage to the connector.
bool myOwnershipTransferEnabled
True when ownership transfer flows are enabled for this session.
Definition chooseRoleState.h:475
DtChooseRoleState(DtPlayerStationApp &app)
Constructor.
virtual DtVreMessageResult handleBackButtonClicked(DtVreMessage *msg)
Handles back button click messages.
std::shared_ptr< AttachToEntity > myAttachToEntity
Shared pointer to the entity attachment configuration.
Definition chooseRoleState.h:464
virtual const DtEntityIdentifier & getCreatedOwnshipEntity() const
Gets the identifier of the created entity.
virtual DtVreMessageResult handleApplicationMode(makVre::DtVreMessage *message)
Handles messages about application mode changes.
virtual void cancelOwnershipIdleTimer()
Publishes OwnershipPlayerEngagedMessage to the connector.
virtual DtVreMessageResult handleEntityRealized(DtVreMessage *message)
Handles messages about entities being realized in the simulation.
DtChooseRolePanel * myEntityPanel
Pointer to the entity selection panel UI.
Definition chooseRoleState.h:458
virtual void setNewEntityHeading(const double headingInDegrees)
Sets the heading for a new entity.
StationDefinition myStationDef
Definition of the station to set up.
Definition chooseRoleState.h:431
virtual void onNewOwnshipRealized()
Called when a new ownship entity is realized.
virtual DtVreMessageResult handleChooseRoleButtonClicked(DtVreMessage *msg)
Handles choose role button click messages.
virtual void play(bool asSpectator=false)
Initiates engagement with the selected entity.
virtual void setNewEntityForce(const DtForceType &force)
Sets the force type for a new entity.
EntityDefinition myNewEntityDef
Definition of the entity to create.
Definition chooseRoleState.h:428
virtual void setNewEntityName(const std::string &name)
Sets the name for a new entity.
virtual std::string getDisplayLayout(const StationDefinition &station) const
Gets the display layout for a station.
virtual void onStacked() override
Called when another state is pushed on top of this one.
int myReengageTries
Number of tries to re-engage after a failed engagement attempt.
Definition chooseRoleState.h:477
virtual void setObserverViewsPanelVisible(bool visible)
Controls visibility of the observer views panel.
virtual void destroyNewEntity()
Destroys a new entity that was being created.
virtual void setNewEntityClamp(bool clamp)
Sets whether the entity should be clamped to terrain.
virtual void setNewEntityEmbarkedOn(const DtEntityIdentifier &host, const DtVector &offset)
Sets a parent entity for embarking.
virtual void setUIVisibility(bool visible)
Controls visibility of the UI components.
virtual bool verifyStationDefinition(StationDefinition const &def, QString *error=NULL) const
Validates a station definition.
virtual void resetEntityPanel()
Resets the entity panel to its default state.
virtual void onExit() override
Called when the state is exited.
virtual const DtEntityType & getNewEntityType()
Gets the type of the entity being created.
Definition chooseRoleState.h:181
DirtyBits
Flags indicating which entity properties have changed.
Definition chooseRoleState.h:444
@ DirtyForce
Entity force type has changed.
Definition chooseRoleState.h:447
@ DirtyPitch
Entity pitch has changed.
Definition chooseRoleState.h:450
@ DirtyPosition
Entity position has changed.
Definition chooseRoleState.h:448
@ DirtyRoll
Entity roll has changed.
Definition chooseRoleState.h:451
@ DirtyType
Entity type has changed.
Definition chooseRoleState.h:446
@ DirtyHeading
Entity heading has changed.
Definition chooseRoleState.h:449
@ DirtyName
Entity name has changed.
Definition chooseRoleState.h:445
virtual void onEnter(const DtPlayerStationStateArgs *args) override
Called when the state is entered.
virtual DtVreMessageResult handleEscKey(DtVreMessage *msg)
Handles escape key press messages.
virtual DtVreMessageResult handleDivestStarted(DtVreMessage *message)
Handles OwnershipDivestStartedMessage from the connector.
virtual DtVreMessageResult handleVrfRewind(DtVreMessage *msg)
Handles VRF rewind messages.
DtVector myHostOffset
Offset from the host entity for embarking.
Definition chooseRoleState.h:437
Configuration initializer for VREngage components.
Definition initializer.h:80
Top-level class representing the VR-Engage application.
Definition playerStationApp.h:155
Class for passing arguments during state transitions.
Definition playerStationState.h:47
DtPlayerStationApp & app() const
Gets a reference to the player station application.
DtPlayerStationState(DtPlayerStationApp &app, std::string stateType)
Constructor.
UI controller for the role selection screen.
Definition vreChooseRolePage.h:183
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Assigns a role and identifies automatic reengagement caused by rewind or snapshot rollback.
Definition vreAssignRolePlayer.h:35
Defines the entity resolver for mapping between entity representations.
Defines export macros for the VR-Engage Player Station library.
#define PLAYERSTATION_DLL
Definition export.h:24
!
Definition glsVreMessageUtil.h:50
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
Definition appLauncherComponent.h:28
Defines base classes for the VR-Engage state management system.
Structure for entity attachment configuration.
Definition chooseRoleState.h:288
bool spectator
Whether to attach as a spectator.
Definition chooseRoleState.h:292
std::string name
Name of the entity to attach to.
Definition chooseRoleState.h:289
std::string role
Role to play in the entity.
Definition chooseRoleState.h:291
std::string displayLayout
Display layout to use.
Definition chooseRoleState.h:290
Structure containing definition data for a new entity.
Definition chooseRoleState.h:249
DtVector position
Geocentric position at specified altitude.
Definition chooseRoleState.h:266
double heading
Heading in degrees (0-360, clockwise from north)
Definition chooseRoleState.h:267
bool clamp
Whether to clamp to terrain.
Definition chooseRoleState.h:264
double altitude
Height above ground in meters.
Definition chooseRoleState.h:265
DtForceType force
Force affiliation (friendly, hostile, etc.)
Definition chooseRoleState.h:262
double pitch
Pitch angle in degrees.
Definition chooseRoleState.h:268
DtEntityType type
Type identifier for the entity.
Definition chooseRoleState.h:261
EntityDefinition()
Constructor that initializes with default values.
Definition chooseRoleState.h:251
std::string name
Display name for the entity.
Definition chooseRoleState.h:260
DtVector location
Geocentric position at ground level.
Definition chooseRoleState.h:263
Structure defining a player station configuration.
Definition chooseRoleState.h:276
DtUUID entityUuid
UUID string of the entity; used by ownership acquire requests.
Definition chooseRoleState.h:280
std::string stationName
Name of the role or station.
Definition chooseRoleState.h:278
std::string displayLayout
Name of the display layout to use.
Definition chooseRoleState.h:279
DtEntityIdentifier entityId
Identifier of the entity to control.
Definition chooseRoleState.h:277
Defines the base class for all VREngage messages.