![]() |
VR-Forces Developer's Guide
|
Abstract base interface for the entity state component.
Declares the full set of accessors, mutators, and change-notification signals for an entity's identity and appearance state. Concrete read/write access is provided by the DtEntityStateComponentCurrentFrameTemplate and DtEntityStateComponentNextFrameTemplate specialisations respectively.
Methods declared with the UNDEFINED_ macros throw DtUnimplementedMethod when called on an instance that has not overridden them.

Public Attributes | |
| boost::signals2::signal< void(int oldState, int newState, makVrf::SimStateID)> | signal_damageStateChanged |
| boost::signals2::signal< void(const DtFrameStateInterface *)> | signal_attachmentsChanged |
| boost::signals2::signal< void(const DtUUID &oldSuperior, const DtUUID &newSuperior)> | signal_superiorChanged |
| boost::signals2::signal< void(bool oldIsClutter, bool newIsClutter)> | signal_isClutterChanged |
| boost::signals2::signal< void(const DtString &, const DtString &, makVrf::SimStateID)> | signal_callsignChanged |
Public Attributes inherited from makVrf::DtSimulatedObjectStateComponent | |
| boost::signals2::signal< void(const DtUUID &, const DtUUID &, makVrf::SimStateID)> | signal_uuidChanged |
| boost::signals2::signal< void(const DtString &, const DtString &, makVrf::SimStateID)> | signal_markingTextChanged |
| boost::signals2::signal< void(int oldForce, int newForce, makVrf::SimStateID)> | signal_forceChanged |
| boost::signals2::signal< void(const DtSimulationAddress &oldAddress, const DtSimulationAddress &newAddress, makVrf::SimStateID)> | signal_simEngineAddressChanged |
Public Attributes inherited from makVrf::DtFrameStateInterface | |
| boost::signals2::signal< void(DtFrameStateInterface *)> | signal_stateComponentAboutToBeDeleted |
| boost::signals2::signal< void(const DtFrameStateInterface *)> | signal_componentModified |
Protected Attributes | |
| UInt32 | myUUIDColumn |
| UInt32 | myIsClutterEntityColumn |
Protected Attributes inherited from makVrf::DtFrameStateInterface | |
| bool | myIsModified |
| UInt64 | myId |
| UInt64 | myStateId |
| UInt64 | myLegionId |
| bool | myIsWritable |
| bool | myCleared |
| bool | myAdvancedFrame |
| bool | myMarkedForRemoval = false |
| DtStateData * | myStateData |
Additional Inherited Members | |
Static Public Member Functions inherited from makVrf::DtSimulatedObjectStateComponent | |
| static DtStateComponent::StateComponentType | ComponentType () |
| static const char * | StringType () |
Protected Member Functions inherited from makVrf::DtFrameStateInterface | |
| virtual void | makeWritable () |
| virtual void | makeReadOnly () |
|
inline |
Constructs the base component referencing storage as its state data owner.
| storage | The DtStateData instance that owns this component. |
|
inlinevirtual |
Returns/sets whether this entity is a clutter entity (scenery with no simulation behaviour).
Returns/sets the DIS capabilities bitmask. Returns/sets the guise entity type (the visually presented type, which may differ from the true type). Returns/sets the UUID of the superior (parent) entity in the hierarchy. Returns/sets the callsign string. Returns the set of UUIDs of entities currently attached to this entity.
Reimplemented in makVrf::DtEntityStateComponentCurrentFrameTemplate< DtEntityStateComponent >, and makVrf::DtEntityStateComponentCurrentFrameTemplate< DtAggregateStateComponent >.
|
inlineoverridevirtual |
Sets the DIS entity type.
| ot | The new entity type to assign. |
Reimplemented in makVrf::DtEntityStateComponentNextFrameTemplate< DtEntityStateComponent >, and makVrf::DtEntityStateComponentNextFrameTemplate< DtAggregateStateComponent >.
|
inlinevirtual |
Records that uuid is attached to this entity.
| uuid | The UUID of the attaching entity. |
Reimplemented in makVrf::DtEntityStateComponentCurrentFrameTemplate< DtEntityStateComponent >, and makVrf::DtEntityStateComponentCurrentFrameTemplate< DtAggregateStateComponent >.
|
inlinevirtual |
Removes uuid from the set of attached entities.
| uuid | The UUID of the detaching entity. |
Reimplemented in makVrf::DtEntityStateComponentCurrentFrameTemplate< DtEntityStateComponent >, and makVrf::DtEntityStateComponentCurrentFrameTemplate< DtAggregateStateComponent >.
|
mutable |
Emitted when the entity's damage state transitions between values.
| oldState | Previous damage state value. |
| newState | New damage state value. |
| id | Simulation state identifier of the entity. |
|
mutable |
Emitted when the set of attached entities changes.
| state | The current frame state interface of the component. |
|
mutable |
Emitted when the superior (parent) entity UUID changes.
| oldSuperior | UUID of the previous superior entity. |
| newSuperior | UUID of the new superior entity. |
|
mutable |
Emitted when the clutter-entity flag changes.
| oldIsClutter | Previous value of the clutter flag. |
| newIsClutter | New value of the clutter flag. |
|
mutable |
Emitted when the entity's callsign changes.
| oldCallsign | Previous callsign string. |
| newCallsign | New callsign string. |
| id | Simulation state identifier of the entity. |
|
protected |
Legion attribute column index for the UUID field; 0xFFFFFFFF until initialised.
|
protected |
Legion attribute column index for the ClutterEntity field; 0xFFFFFFFF until initialised.