VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Protected Attributes
makVrf::DtEntityStateComponent Class Reference

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.

Inheritance diagram for makVrf::DtEntityStateComponent:
Inheritance graph
[legend]

Public Member Functions

 DtEntityStateComponent (DtStateData *storage)
 
virtual const std::set< DtUUID > attachments () const
 
virtual void setEntityType (const DtEntityType &ot) override
 
virtual void addAttachment (const DtUUID &)
 
virtual void removeAttachment (const DtUUID &)
 
- Public Member Functions inherited from makVrf::DtSimulatedObjectStateComponent
 DtSimulatedObjectStateComponent (DtStateData *)
 
virtual bool mainComponentOnLegion () const
 
- Public Member Functions inherited from makVrf::DtFrameStateInterface
 DtFrameStateInterface (DtStateData *)
 
virtual ~DtFrameStateInterface ()
 
void setIsWritable (bool b)
 
bool isWritable () const
 
UInt64 stateId () const
 
UInt64 legionGlobalId () const
 
void setLegionGlobalId (UInt64 d)
 
virtual bool isModified () const
 
virtual void clearModified ()
 
virtual void markModified ()
 
virtual
DtStateComponent::StateComponentType 
type () const
 
virtual
DtStateComponent::StateComponentType 
componentType () const =0
 
virtual const char * stringType () const =0
 
void setId (UInt64 id)
 
virtual UInt64 id () const
 
virtual void updateStateData (DtStateData *sd)
 
virtual Legion::ReadStateInstance readStateInstance () const
 
virtual Legion::WriteStateInstance writeStateInstance ()
 
void emitComponentUpdated ()
 
void setMarkedForRemoval (bool b)
 
bool markedForRemoval () const
 
bool cleared () const
 
bool advancedFrame () const
 
virtual void frameAdvanced ()
 
virtual void convertToRemote ()
 
virtual void convertToLocal ()
 
virtual void aboutToBeDeleted ()
 

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 ()
 

Constructor & Destructor Documentation

makVrf::DtEntityStateComponent::DtEntityStateComponent ( DtStateData *  storage)
inline

Constructs the base component referencing storage as its state data owner.

Parameters
storageThe DtStateData instance that owns this component.

Member Function Documentation

virtual const std::set<DtUUID> makVrf::DtEntityStateComponent::attachments ( ) const
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.

Returns
An immutable copy of the attachment set.

Reimplemented in makVrf::DtEntityStateComponentCurrentFrameTemplate< DtEntityStateComponent >, and makVrf::DtEntityStateComponentCurrentFrameTemplate< DtAggregateStateComponent >.

virtual void makVrf::DtEntityStateComponent::setEntityType ( const DtEntityType &  ot)
inlineoverridevirtual
virtual void makVrf::DtEntityStateComponent::addAttachment ( const DtUUID &  )
inlinevirtual

Records that uuid is attached to this entity.

Parameters
uuidThe UUID of the attaching entity.

Reimplemented in makVrf::DtEntityStateComponentCurrentFrameTemplate< DtEntityStateComponent >, and makVrf::DtEntityStateComponentCurrentFrameTemplate< DtAggregateStateComponent >.

virtual void makVrf::DtEntityStateComponent::removeAttachment ( const DtUUID &  )
inlinevirtual

Removes uuid from the set of attached entities.

Parameters
uuidThe UUID of the detaching entity.

Reimplemented in makVrf::DtEntityStateComponentCurrentFrameTemplate< DtEntityStateComponent >, and makVrf::DtEntityStateComponentCurrentFrameTemplate< DtAggregateStateComponent >.

Member Data Documentation

boost::signals2::signal<void (int oldState, int newState, makVrf::SimStateID)> makVrf::DtEntityStateComponent::signal_damageStateChanged
mutable

Emitted when the entity's damage state transitions between values.

Parameters
oldStatePrevious damage state value.
newStateNew damage state value.
idSimulation state identifier of the entity.
boost::signals2::signal<void (const DtFrameStateInterface*)> makVrf::DtEntityStateComponent::signal_attachmentsChanged
mutable

Emitted when the set of attached entities changes.

Parameters
stateThe current frame state interface of the component.
boost::signals2::signal<void(const DtUUID& oldSuperior, const DtUUID& newSuperior)> makVrf::DtEntityStateComponent::signal_superiorChanged
mutable

Emitted when the superior (parent) entity UUID changes.

Parameters
oldSuperiorUUID of the previous superior entity.
newSuperiorUUID of the new superior entity.
boost::signals2::signal<void(bool oldIsClutter, bool newIsClutter)> makVrf::DtEntityStateComponent::signal_isClutterChanged
mutable

Emitted when the clutter-entity flag changes.

Parameters
oldIsClutterPrevious value of the clutter flag.
newIsClutterNew value of the clutter flag.
boost::signals2::signal<void(const DtString&, const DtString&, makVrf::SimStateID)> makVrf::DtEntityStateComponent::signal_callsignChanged
mutable

Emitted when the entity's callsign changes.

Parameters
oldCallsignPrevious callsign string.
newCallsignNew callsign string.
idSimulation state identifier of the entity.
UInt32 makVrf::DtEntityStateComponent::myUUIDColumn
protected

Legion attribute column index for the UUID field; 0xFFFFFFFF until initialised.

UInt32 makVrf::DtEntityStateComponent::myIsClutterEntityColumn
protected

Legion attribute column index for the ClutterEntity field; 0xFFFFFFFF until initialised.


The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)