#include <sharedstate.h>
Public Member Functions | |
| bool | AddEntity (const DIS::EntityID &eid, const dtDAL::ActorProxy *proxy) |
| relate an EntityID with an Actor | |
| bool | RemoveEntity (const DIS::EntityID &eid, const dtDAL::ActorProxy *proxy) |
| remove a relation for the EntityID and Actor | |
| const DIS::EntityID * | GetEntity (const dtCore::UniqueId &uid) const |
| finds the associated Entity | |
| const dtDAL::ActorProxy * | GetActor (const DIS::EntityID &eid) const |
| finds the associated Actor | |
| void | ClearAll () |
| remove all state data. | |
Provides quick look-ups given either an entity or an actor by keeping 2 maps in sync.
| bool ActiveEntityControl::AddEntity | ( | const DIS::EntityID & | eid, | |
| const dtDAL::ActorProxy * | proxy | |||
| ) |
relate an EntityID with an Actor
| bool ActiveEntityControl::RemoveEntity | ( | const DIS::EntityID & | eid, | |
| const dtDAL::ActorProxy * | proxy | |||
| ) |
remove a relation for the EntityID and Actor
| const DIS::EntityID * ActiveEntityControl::GetEntity | ( | const dtCore::UniqueId & | uid | ) | const |
finds the associated Entity
| const dtDAL::ActorProxy * ActiveEntityControl::GetActor | ( | const DIS::EntityID & | eid | ) | const |
finds the associated Actor
| void ActiveEntityControl::ClearAll | ( | ) |
remove all state data.