Instances of DtIfAssignRolePlayer messages are sent out by a VRF GUI application to assign a player to an entity at a particular VREngage station. This message includes information about the player's station/role, the entity to control, and viewing mode settings.
#include <ifAssignRolePlayer.h>
|
| static DtSimInterfaceContent * | creator () |
| |
◆ DtIfAssignRolePlayer() [1/2]
| DtIfAssignRolePlayer::DtIfAssignRolePlayer |
( |
| ) |
|
◆ ~DtIfAssignRolePlayer()
| virtual DtIfAssignRolePlayer::~DtIfAssignRolePlayer |
( |
| ) |
|
|
overridevirtual |
◆ DtIfAssignRolePlayer() [2/2]
Copy constructor.
- Parameters
-
| orig | The assign role player message to copy from |
Creates a new assign role player message by copying an existing one.
References DtIfAssignRolePlayer().
◆ operator=()
Assignment operator.
- Parameters
-
| orig | The assign role player message to copy from |
- Returns
- Reference to this object after assignment
Copies the contents of another assign role player message into this one.
References DtIfAssignRolePlayer().
◆ type()
| virtual int DtIfAssignRolePlayer::type |
( |
| ) |
const |
|
overridevirtual |
Gets the interface message type.
- Returns
- The message type identifier
Returns DtAssignRolePlayerMessageType as defined in vreVrfMessageTypes.h.
◆ clone()
| virtual DtSimInterfaceContent * DtIfAssignRolePlayer::clone |
( |
| ) |
const |
|
overridevirtual |
Creates a copy of this message.
- Returns
- Pointer to the new copy
Creates a dynamically allocated copy of this message.
◆ setId()
| virtual void DtIfAssignRolePlayer::setId |
( |
unsigned long | id | ) |
|
|
virtual |
Sets the identifier of the VREngage application.
- Parameters
-
| 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.
◆ id()
| virtual unsigned long DtIfAssignRolePlayer::id |
( |
| ) |
const |
|
virtual |
Gets the identifier of the VREngage application.
- Returns
- The VREngage application identifier
◆ setUUID()
| virtual void DtIfAssignRolePlayer::setUUID |
( |
const DtString & | uuid | ) |
|
|
virtual |
Sets the UUID of the entity to be controlled.
- Parameters
-
| uuid | The entity UUID to set |
Sets the UUID of the entity to be controlled at the VREngage station.
References uuid().
◆ uuid()
| virtual DtString DtIfAssignRolePlayer::uuid |
( |
| ) |
const |
|
virtual |
Gets the UUID of the entity to be controlled.
- Returns
- The entity UUID
Referenced by setUUID().
◆ setStationName()
| virtual void DtIfAssignRolePlayer::setStationName |
( |
const DtString & | name | ) |
|
|
virtual |
Sets the station/role name for the player.
- Parameters
-
| name | The station name to set |
Sets the station name (role) to be assumed by the player at the VREngage station. Available string identifiers for roles are defined in the .entity file.
◆ stationName()
| virtual DtString DtIfAssignRolePlayer::stationName |
( |
| ) |
const |
|
virtual |
Gets the station/role name for the player.
- Returns
- The station name
◆ setSpectatorMode()
| virtual void DtIfAssignRolePlayer::setSpectatorMode |
( |
bool | mode | ) |
|
|
virtual |
Sets the spectator mode flag.
- Parameters
-
| 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.
◆ spectatorMode()
| virtual bool DtIfAssignRolePlayer::spectatorMode |
( |
| ) |
const |
|
virtual |
Gets the spectator mode flag.
- Returns
- True if in spectator mode, false otherwise
◆ netRepSize()
| virtual int DtIfAssignRolePlayer::netRepSize |
( |
| ) |
const |
|
overridevirtual |
Gets the network representation size.
- Returns
- Size in bytes of the network representation
Returns the size of the network buffer needed to store this message.
◆ setFromNet()
| virtual bool DtIfAssignRolePlayer::setFromNet |
( |
const char * | contentBuffer, |
|
|
unsigned | contentSize ) |
|
overridevirtual |
Deserializes the message from a network buffer.
- Parameters
-
| contentBuffer | Pointer to the network buffer |
| contentSize | Size of the buffer in bytes |
- Returns
- True if deserialization was successful
Fills the message from the provided network buffer.
◆ setToNet()
| virtual bool DtIfAssignRolePlayer::setToNet |
( |
| ) |
|
|
overridevirtual |
Serializes the message for network transmission.
- Returns
- True if serialization was successful
Prepares the message for network transmission.
◆ printDataToString()
| virtual void DtIfAssignRolePlayer::printDataToString |
( |
DtString & | str | ) |
|
|
overridevirtual |
Formats the message data as a string.
- Parameters
-
| str | String to store the formatted message data |
Appends a human-readable representation of the message to the provided string.
◆ creator()
| static DtSimInterfaceContent * DtIfAssignRolePlayer::creator |
( |
| ) |
|
|
static |
Static creator function for factory registration.
- Returns
- Pointer to a new instance of DtIfAssignRolePlayer
This static function is used for registration with DtInterfaceContentFactory.
◆ myVersion
| DtU32 DtIfAssignRolePlayer::myVersion |
|
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.
◆ myId
| DtU64 DtIfAssignRolePlayer::myId |
|
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.
◆ myUUID
| DtString DtIfAssignRolePlayer::myUUID |
|
protected |
UUID of the entity to be controlled.
◆ myStationName
| DtString DtIfAssignRolePlayer::myStationName |
|
protected |
Station/role name for the player.
Station name to be assumed by the player at the VREngage station (defined in the .entity file).
◆ mySpectatorMode
| bool DtIfAssignRolePlayer::mySpectatorMode |
|
protected |
Flag indicating whether player is in spectator mode.
When true, the player can observe but not interact with the entity.
The documentation for this class was generated from the following file: