![]() |
VR-Forces Development_Version Class Documentation
|
Public Member Functions | |
| DtFormationState () | |
| DtFormationState (const DtFormationState &orig) | |
| DtFormationState & | operator= (const DtFormationState &orig) |
| virtual | ~DtFormationState () |
| virtual void | setFormation (const DtFormation &formation) |
| Set the physical formation layout. | |
| virtual void | setFormation (const std::vector< DtFormationRecord * > &formation) |
| virtual void | addFormationRecord (const DtFormationRecord &formationRecord, int positionIndex) |
| adds/replaces formation record to formation at the given position index | |
| virtual void | removeFormationRecord (int positionIndex) |
| remove formation record at the given position index in the formation | |
| virtual void | setEntityList (const std::vector< DtUUID > &entityList) |
| sets (replaces) entity list, assigning promotion indices in the order the entities are given, starting at zero. | |
| virtual void | setEntityListAndFormation (const std::vector< DtUUID > &entityList, const DtFormation &formation, const std::list< int > &formationPositions) |
| virtual void | setEntityListAndFormation (DtOrgViewManagedObjectListConstPtr entityList, const DtFormation &formation, const std::list< int > &formationPositions) |
| Calls to setEntityListAndFormation above with list of entity names extracted from subordinate query list. | |
| virtual const DtRwVrfObjectReferenceList & | entityList () const |
| List of subordinate names in the formation. | |
| virtual void | clearEntityList () |
| Remove all subordinate names from the formation. | |
| virtual bool | lookup (const DtUUID &subordinate, DtFormationQueryResult &result) |
| Lookup formation entry by subordinate's object uuid. | |
| virtual int | lookupPromotionIndexByName (const DtUUID &subordinate) const |
| virtual void | queryAll (DtFormationQueryResultList &resultList) |
| Returns formation state associated with each entity in formation. | |
| virtual DtUUID | formationLeader () const |
| Returns the entity who is not positioned relative to someone else in the formation, i.e. | |
| virtual double | formationHalfLength () const |
| Returns the half-length of the formation. | |
| virtual void | print () |
| For debugging. | |
| virtual void | addFormationStateChangedCallback (DtFormationStateCallbackFcn fcn, void *userData) |
| Registers callback for notification of any change to the formation state. | |
| virtual void | removeFormationStateChangedCallback (DtFormationStateCallbackFcn fcn, void *userData) |
| Removes callback for notification of any change to the formation state. | |
| virtual void | enableFormationCallbacks () |
| Control whether or not formation callbacks are invoked. | |
| virtual void | disableFormationCallbacks () |
| virtual bool | isAvailableForFormation (const DtVrfObject *) const |
| Returns true if this item is available for formation. | |
Protected Member Functions | |
| virtual DtFormationRecord * | lookupFormationRecord (int positionIndex) |
| virtual DtVector | lookupFollowOffset (const DtUUID &subordinate) |
| virtual DtUUID | lookupLeader (const DtUUID &subordinate) |
| virtual void | rebuildEntityToPositionMap () |
| virtual DtFormationRecord * | generateAdditionalFormationRecord (int positionIndex) const |
| Returns a new instance of a DtFormationRecord. | |
| void | emptyPositionIndexToFormationRecordMap () |
| Deletes all DtFormationRecord entries in myPositionIndexToFormationRecordMap and clears out all entries from map. | |
| virtual DtVector | positionOffsetForPositionIndex (int positionIndex) |
| virtual void | invokeFormationStateChangedCallbacks () const |
Protected Attributes | |
| DtRwVrfObjectReferenceList | myEntityList |
| std::map< int, DtFormationRecord * > | myPositionIndexToFormationRecordMap |
| std::map< DtUUID, DtVector > | myEntityToPositionMap |
| std::map< int, DtUUID > | myPositionIndexToEntityMap |
| std::map< DtUUID, int > | myEntityToPositionIndexMap |
| std::vector < DtFormationStateCallbackInfo > | myFormationStateChangedCallbackList |
| List of DtFormationStateCallbackFcns. | |
| bool | myCallbacksAreEnabled |
| DtFormationState::DtFormationState | ( | ) |
| DtFormationState::DtFormationState | ( | const DtFormationState & | orig | ) |
|
virtual |
| DtFormationState& DtFormationState::operator= | ( | const DtFormationState & | orig | ) |
|
virtual |
Set the physical formation layout.
|
virtual |
|
virtual |
adds/replaces formation record to formation at the given position index
|
virtual |
remove formation record at the given position index in the formation
|
virtual |
sets (replaces) entity list, assigning promotion indices in the order the entities are given, starting at zero.
|
virtual |
|
virtual |
Calls to setEntityListAndFormation above with list of entity names extracted from subordinate query list.
|
virtual |
List of subordinate names in the formation.
|
virtual |
Remove all subordinate names from the formation.
|
virtual |
Lookup formation entry by subordinate's object uuid.
|
virtual |
|
virtual |
Returns formation state associated with each entity in formation.
It is up to the caller to delete the memory associated with each DtFormationQueryResult item returned in the vector.
|
virtual |
Returns the entity who is not positioned relative to someone else in the formation, i.e.
the overall 'leader'
|
virtual |
Returns the half-length of the formation.
|
virtual |
For debugging.
|
virtual |
Registers callback for notification of any change to the formation state.
|
virtual |
Removes callback for notification of any change to the formation state.
|
virtual |
Control whether or not formation callbacks are invoked.
By default, they are enabled. Only the DtFormationController should ever call these functions.
|
virtual |
|
virtual |
Returns true if this item is available for formation.
Uses the DtTaskableSubordinatePredicate to figure this out
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Returns a new instance of a DtFormationRecord.
It is up to the caller to delete the memory associated with the record.
|
protected |
Deletes all DtFormationRecord entries in myPositionIndexToFormationRecordMap and clears out all entries from map.
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
List of DtFormationStateCallbackFcns.
Clients register callback functions on this list for notification when the formation state has changed for some reason.
|
protected |