|
VR-Engage
2.3
|
Sent any time there's a network update for an entity.
Message type: "simulation.state.entity"
#include <simulationState.h>
Classes | |
| struct | ArtPart |
| struct | AttPart |
| struct | EmbeddedEntity |
| struct | EngagedRole |
| struct | Parameter |
| struct | SimulationStateData |
Public Member Functions | |
| virtual | ~SimulationStateMessage () override |
Accessors | |
| virtual const DtEntityIdentifier & | getId () const |
| virtual void | setId (const DtEntityIdentifier &val) |
| virtual const DtEntityType & | getType () const |
| virtual void | setType (const DtEntityType &val) |
| virtual const std::string & | getObjectLabel () const |
| virtual void | setObjectLabel (const std::string &val) |
| virtual DamageState | getDamageState () const |
| virtual void | setDamageState (DamageState val) |
| virtual const DtVector & | getWorldPosition () const |
| virtual void | setWorldPosition (const DtVector &val) |
| virtual const DtVector32 & | getWorldVelocity () const |
| virtual void | setWorldVelocity (const DtVector32 &val) |
| virtual const DtVector32 & | getWorldAcceleration () const |
| virtual void | setWorldAcceleration (const DtVector32 &val) |
| virtual const DtTaitBryan & | getWorldOrientation () const |
| virtual void | setWorldOrientation (const DtTaitBryan &val) |
| virtual const DtVector32 & | getRotationalVelocity () const |
| virtual void | setRotationalVelocity (const DtVector32 &val) |
| virtual ForceType | getForceType () const |
| virtual void | setForceType (ForceType val) |
| virtual unsigned int | getAppearanceBits () const |
| virtual void | setAppearanceBits (unsigned int val) |
| virtual const std::vector< ArtPart > & | getArticulatedParts () const |
| virtual void | setArticulatedParts (const std::vector< ArtPart > &val) |
| virtual const DtEntityIdentifier & | getHost () const |
| virtual void | setHost (const DtEntityIdentifier &val) |
| virtual const DtEntityType & | getHostType () const |
| virtual void | setHostType (const DtEntityType &val) |
| virtual const std::string & | getHostMarking () const |
| virtual void | setHostMarking (const std::string &val) |
| virtual const DtVector32 & | getRelativeVelocity () const |
| virtual void | setRelativeVelocity (const DtVector32 &val) |
| virtual const std::string & | getAutopilotMode () const |
| virtual void | setAutopilotMode (const std::string &val) |
| virtual const std::string & | getDiguyType () const |
| virtual void | setDiguyType (const std::string &val) |
| virtual const std::string & | getDiguyAppearance () const |
| virtual void | setDiguyAppearance (const std::string &val) |
| virtual const std::string & | getDiguyItem () const |
| virtual void | setDiguyItem (const std::string &val) |
| virtual const std::string & | getDiguyAction () const |
| virtual void | setDiguyAction (const std::string &val) |
| virtual int | getWeaponIndex () const |
| virtual void | setWeaponIndex (int val) |
| virtual int | getWeaponState () const |
| virtual void | setWeaponState (int val) |
| virtual const std::string & | getCameraSystemName () const |
| virtual void | setCameraSystemName (const std::string &val) |
| virtual const std::vector< DtEntityIdentifier > & | getCameraObjectNames () const |
| virtual void | setCameraObjectNames (const std::vector< DtEntityIdentifier > &val) |
| virtual const std::vector< DtEntityIdentifier > & | getGateObjectNames () const |
| virtual void | setGateObjectNames (const std::vector< DtEntityIdentifier > &val) |
| virtual const std::vector< EmbeddedEntity > & | getEmbeddedEntities () const |
| virtual void | setEmbeddedEntities (const std::vector< EmbeddedEntity > &val) |
| virtual int | getAltitudeAgl () const |
| virtual void | setAltitudeAgl (int val) |
| virtual const std::vector< std::string > & | getDisabledInstruments () const |
| virtual void | setDisabledInstruments (const std::vector< std::string > &val) |
| virtual const std::vector< float > & | getPidGains () const |
| virtual void | setPidGains (const std::vector< float > &val) |
| virtual bool | getHideOccupants () const |
| virtual void | setHideOccupants (bool val) |
| virtual const std::string & | getEmbarkedAsRole () const |
| virtual void | setEmbarkedAsRole (const std::string &val) |
| virtual bool | getInvisible () const |
| virtual void | setInvisible (bool val) |
| virtual const std::vector< EngagedRole > & | getEngagedRoles () const |
| virtual void | setEngagedRoles (const std::vector< EngagedRole > &val) |
Operators | |
| bool | operator== (const SimulationStateMessage &rhs) const |
| bool | operator!= (const SimulationStateMessage &rhs) const |
Static Public Member Functions | |
Static Creators | |
Create a new default instance.
| |
| static SimulationStateMessage * | create () |
| static SimulationStateMessage * | createFrom (SimulationStateMessage *origMsg) |
| static SimulationStateMessage * | createFromData (const SimulationStateData data) |
Protected Member Functions | |
| SimulationStateMessage () | |
| virtual void | serialize (DtStreamWriter &writer) const override |
| virtual void | deserialize (DtStreamReader &reader) override |
Protected Attributes | |
| SimulationStateData | myData |
Static Protected Attributes | |
| static makVre::DtVreMessageId | theMessageId |
| static UInt64 | theVersion |
Type Identity | |
Get the message type string for this message class. | |
| virtual const std::string & | type () const override |
| virtual const makVre::DtVreMessageId & | messageId () const override |
| static const std::string & | theType () |
| static const makVre::DtVreMessageId & | theId () |
| static UInt64 | theVersionNumber () |
Serialization | |
Static decode function pattern for derived classes.
Gets the total size of the serialized message in bytes
This method calculates the total size of the message when serialized, including the base message header (message size, type hash, application ID, version, and delay) and any data added by derived classes. Derived classes should override this method to include their own data size while calling the base class implementation. | |
| virtual int | messageSize () const override |
| SimulationStateData | getData () |
| SimulationStateData | getData () const |
| static makVre::DtVreMessage * | decode (char *buffer, int length) |
TrailingEffects enumeration.
| Enumerator | |
|---|---|
| TrailingEffects_NONE | |
| TrailingEffects_SMALL | |
| TrailingEffects_MEDIUM | |
| TrailingEffects_LARGE | |
ForceType enumeration.
| Enumerator | |
|---|---|
| ForceType_OTHER | |
| ForceType_FRIENDLY | |
| ForceType_OPPOSING | |
| ForceType_NEUTRAL | |
ParameterTypes enumeration.
WeaponState enumeration.
| Enumerator | |
|---|---|
| WeaponState_NOWEAPON | |
| WeaponState_STOWED | |
| WeaponState_DEPLOYED | |
| WeaponState_FIREPOSITION | |
EmbeddedEntityState enumeration.
| Enumerator | |
|---|---|
| EmbeddedEntityState_RECOVERED | |
| EmbeddedEntityState_DEPLOYED_AND_EXTANT | |
| EmbeddedEntityState_DEPLOYED_AND_DELETED | |
| EmbeddedEntityState_UNKNOWN | |
ComplianceState enumeration.
LightType enumeration.
DamageState enumeration.
| Enumerator | |
|---|---|
| DamageState_NONE | |
| DamageState_SLIGHT | |
| DamageState_MODERATE | |
| DamageState_DESTROYED | |
LifeformState enumeration.
HatchState enumeration.
| Enumerator | |
|---|---|
| HatchState_NA | |
| HatchState_CLOSED | |
| HatchState_POPPED | |
| HatchState_POPPEDANDPERSON | |
| HatchState_OPEN | |
| HatchState_OPENANDPERSON | |
CamoflageType enumeration.
| Enumerator | |
|---|---|
| CamoflageType_DESERT | |
| CamoflageType_WINTER | |
| CamoflageType_FOREST | |
|
overridevirtual |
Destructor.
|
protected |
Referenced by create(), createFrom(), createFromData(), operator!=(), and operator==().
|
static |
Create a copy of the given message.
| origMsg | The message to copy. Must not be null. |
References SimulationStateMessage().
|
static |
Create a copy of the given message.
| origMsg | The message to copy. Must not be null. |
References SimulationStateMessage().
|
static |
Create a new message initialized with the given data.
| data | The data payload to initialize the message with. |
References SimulationStateMessage().
|
static |
Get the message type string for this instance.
Referenced by makVre::DtVreGlstudioUpdater< UpdaterBase >::init(), and makVre::DtVreGlstudioUpdater< UpdaterBase >::~DtVreGlstudioUpdater().
|
static |
Get the message identifier for this message class.
|
static |
Get the version number for this message class.
|
overridevirtual |
Get the message type string for this instance.
Implements makVre::DtVreMessage.
|
overridevirtual |
Get the message identifier for this instance.
Implements makVre::DtVreMessage.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
overridevirtual |
Get a copy of the message data.
Reimplemented from makVre::DtVreMessage.
|
static |
Decode a message from a byte buffer.
| buffer | The raw byte buffer to decode from. |
| length | The length of the buffer in bytes. |
| SimulationStateData makVre::SimulationStateMessage::getData | ( | ) |
Get a copy of the message data.
| SimulationStateData makVre::SimulationStateMessage::getData | ( | ) | const |
Get a copy of the message data (const).
| bool makVre::SimulationStateMessage::operator== | ( | const SimulationStateMessage & | rhs | ) | const |
References SimulationStateMessage().
| bool makVre::SimulationStateMessage::operator!= | ( | const SimulationStateMessage & | rhs | ) | const |
References SimulationStateMessage().
|
overrideprotectedvirtual |
Serializes the message to a stream writer.
| writer | Reference to the stream writer |
This method writes the message header fields to the stream writer. Derived classes should override this method to add their own fields while calling the base class implementation.
Reimplemented from makVre::DtVreMessage.
|
overrideprotectedvirtual |
Deserializes the message from a stream reader.
| reader | Reference to the stream reader |
This method reads the message header fields from the stream reader. Derived classes should override this method to read their own fields while calling the base class implementation.
Reimplemented from makVre::DtVreMessage.
|
staticprotected |
|
staticprotected |
|
protected |