|
VR-Engage
2.2
|
Instances of DtIfVreStatus messages are sent out by a VREngage application to announce its availability as a role player and its current entity assignment status. These status messages enable coordination between multiple VREngage stations and other simulation components.
#include <ifVreStatus.h>
Public Member Functions | |
| DtIfVreStatus () | |
| virtual | ~DtIfVreStatus () override |
| DtIfVreStatus (const DtIfVreStatus &orig) | |
| DtIfVreStatus & | operator= (const DtIfVreStatus &orig) |
| virtual int | type () const override |
| virtual DtSimInterfaceContent * | clone () const override |
| virtual void | setId (unsigned long id) |
| virtual unsigned long | id () const |
| virtual void | setName (const DtString &name) |
| virtual DtString | name () const |
| virtual void | setPlayerName (const DtString &name) |
| virtual DtString | playerName () const |
| virtual void | setUUID (const DtString &uuid) |
| virtual DtString | uuid () const |
| virtual void | setStationName (const DtString &name) |
| virtual DtString | stationName () const |
| virtual void | setSpectatorMode (bool mode) |
| virtual bool | spectatorMode () const |
| virtual void | setFinalStatusMessage (bool yesNo) |
| virtual bool | finalStatusMessage () const |
| virtual int | netRepSize () const override |
| virtual bool | setFromNet (const char *contentBuffer, unsigned contentSize) override |
| virtual bool | setToNet () override |
| virtual void | printDataToString (DtString &str) override |
Static Public Member Functions | |
| static DtSimInterfaceContent * | creator () |
Protected Attributes | |
| DtU32 | myVersion |
| DtU64 | myId |
| DtString | myName |
| DtString | myPlayerName |
| DtString | myUUID |
| DtString | myStationName |
| bool | mySpectatorMode |
| bool | myFinalStatusMessage |
| DtIfVreStatus::DtIfVreStatus | ( | ) |
Default constructor.
Initializes an empty VREngage status message.
Referenced by DtIfVreStatus(), and operator=().
|
overridevirtual |
Virtual destructor.
| DtIfVreStatus::DtIfVreStatus | ( | const DtIfVreStatus & | orig | ) |
Copy constructor.
| orig | The VREngage status message to copy from |
Creates a new VREngage status message by copying an existing one.
References DtIfVreStatus().
| DtIfVreStatus & DtIfVreStatus::operator= | ( | const DtIfVreStatus & | orig | ) |
Assignment operator.
| orig | The VREngage status message to copy from |
Copies the contents of another VREngage status message into this one.
References DtIfVreStatus().
|
overridevirtual |
Gets the interface message type.
Returns DtVreStatusMessageType as defined in vreVrfMessageTypes.h.
|
overridevirtual |
Creates a copy of this message.
Creates a dynamically allocated copy of this message.
|
virtual |
Sets the identifier of the VREngage application.
| id | The unique identifier to set |
Sets the unique identifier for the VREngage application. This must be unique across all VREngage stations in an exercise and must not change over the lifetime of the application.
|
virtual |
Gets the identifier of the VREngage application.
|
virtual |
Sets the name of the VREngage application.
| name | The application name to set |
Sets the name of the VREngage application. This should be unique across all participating VREngage applications in an exercise, but unlike the ID, it may be changed during the lifetime of the application.
References name().
|
virtual |
Gets the name of the VREngage application.
Referenced by setName(), setPlayerName(), and setStationName().
|
virtual |
Sets the name of the player using the VREngage application.
| name | The player name to set |
Sets the optional name of the human player using the VREngage application. This can be used for display purposes and user identification.
References name().
|
virtual |
Gets the name of the player.
|
virtual |
Sets the UUID of the entity being controlled.
| uuid | The entity UUID to set |
Sets the UUID of the entity currently controlled by this VREngage station. If no entity is currently controlled, this may be empty.
References uuid().
|
virtual |
|
virtual |
Sets the station/role name for the player.
| name | The station name to set |
Sets the station name (role) assumed by the player at the VREngage station. Available string identifiers for station names are defined in the VREngage player definition .entity files (e.g., "driver", "gunner", "commander").
References name().
|
virtual |
Gets the station/role name for the player.
|
virtual |
Sets the spectator mode flag.
| mode | True for spectator mode, false for active player mode |
Sets whether the player at the VREngage station is in spectator mode. In spectator mode, the player can observe but not interact with the entity.
|
virtual |
Gets the spectator mode flag.
|
virtual |
Sets the final status message flag.
| yesNo | True if this is the final status message, false otherwise |
Sets whether this status message is the final one to be sent by this VREngage application. When true, it indicates the application is shutting down.
|
virtual |
Gets the final status message flag.
|
overridevirtual |
Gets the network representation size.
Returns the size of the network buffer needed to store this message.
|
overridevirtual |
Deserializes the message from a network buffer.
| contentBuffer | Pointer to the network buffer |
| contentSize | Size of the buffer in bytes |
Fills the message from the provided network buffer.
|
overridevirtual |
Serializes the message for network transmission.
Prepares the message for network transmission.
|
overridevirtual |
Formats the message data as a string.
| str | String to store the formatted message data |
Appends a human-readable representation of the message to the provided string.
|
static |
Static creator function for factory registration.
This static function is used for registration with DtInterfaceContentFactory.
|
protected |
Version information for the message.
The high word is a signal that the version exists, and the low word is the actual version. If this information does not exist, it is assumed to be an older status message.
|
protected |
Unique identifier for the VREngage application.
Must be unique across all VREngage stations in an exercise and must not change over the lifetime of the application.
|
protected |
Name of the VREngage application.
Should be unique across all VREngage stations in an exercise. Unlike the ID, the name may be changed during an exercise.
|
protected |
Name of the player using the VREngage application.
Optional identifier for the human user of the application.
|
protected |
UUID of the entity being controlled.
Identifies the entity currently controlled by this VREngage station. May be empty if no entity is currently controlled.
|
protected |
Station/role name for the player.
The station name (role) assumed by the player at the VREngage station (defined in the .entity file, e.g., "driver", "gunner", "commander").
|
protected |
Flag indicating whether player is in spectator mode.
When true, the player can observe but not interact with the entity.
|
protected |
Flag indicating whether this is the final status message.
When true, indicates this is the final status message to be sent by this VREngage application before shutting down.