![]() |
MAK Legion API Documentation
|
Collaboration diagram for Clutter::SimEngine:Public Member Functions | |
| SimEngine (Legion::SimulationDatabase *db, Legion::Vector2d minBounds, Legion::Vector2d maxBounds, Legion::Vector2d referenceCoordinate, int maxEntites, int forceId) | |
| ~SimEngine () | |
| void | finish () |
| void | tick () |
| void | togglePause () |
| bool | isPaused () const |
| void | toggleForceId (int fractionToToggle) |
| double | simTime () |
Protected Member Functions | |
| bool | init () |
| void | updateForce () |
| void | processPlayControls (Legion::Span< LOM::PlayControl > &controlList) |
| void | processPauseControls (Legion::Span< LOM::PauseControl > &controlList) |
| void | addEmbarkation () |
| void | removeEmbarkation () |
| void | updateEmbarkedEntities () |
| void | extendEntityAttributes () |
| void | updateEntities (int firstEntityIndex, int numberOfEntites) |
| bool | entityAtDestination (LOM::WriteEntityRepository *ent) |
| void | selectNewDestination (LOM::WriteEntityRepository *ent) |
| double | nextRand (int maxRange) |
Protected Attributes | |
| Legion::SimulationDatabase * | mySimDatabase |
| Legion::ViewManager * | myViewManager |
| Legion::EventManager * | myEventManager |
| Legion::ControlManager * | myControlManager |
| LOM::EntityView * | myEntityView |
| std::vector < LOM::WriteEntityRepository > | myEntites |
| Legion::Vector2d | myMin |
| Legion::Vector2d | myMax |
| Legion::Vector2d | myReferenceCoordinate |
| int | myNumberEntities |
| int | myNumberRemoteEntities |
| int | myForceId |
| int | myFractionToToggle |
| bool | myIsInitalized |
| MAK::SimTime | mySimTime |
| bool | myTogglePause |
| Legion::UInt32 | myMoveDelayAttrIndex |
| Legion::UInt32 | myMoveGoalAttrIndex |
| Legion::UInt32 | myPlayCallbackHandle |
| Legion::UInt32 | myPauseCallbackHandle |
| Clutter::SimEngine::SimEngine | ( | Legion::SimulationDatabase * | db, |
| Legion::Vector2d | minBounds, | ||
| Legion::Vector2d | maxBounds, | ||
| Legion::Vector2d | referenceCoordinate, | ||
| int | maxEntites, | ||
| int | forceId | ||
| ) |
References Legion::ControlManager::addControlCallback(), Legion::ViewManager::createView(), extendEntityAttributes(), myControlManager, myEntites, myEntityView, myPauseCallbackHandle, myPlayCallbackHandle, mySimDatabase, myViewManager, processPauseControls(), processPlayControls(), Legion::Remote, Legion::SimulationDatabase::reserve(), and Legion::SimulationDatabase::viewManager().
| Clutter::SimEngine::~SimEngine | ( | ) |
|
protected |
References Legion::SimulationDatabase::createInstance(), myEntites, myNumberEntities, and mySimDatabase.
Referenced by init().
|
protected |
References Legion::Vector3d::data, Legion::Vector3d::distanceFrom(), and myMoveGoalAttrIndex.
Referenced by updateEntities().
|
protected |
References Legion::AttributeDescriptor::cardinality, Legion::Double, Legion::SimulationDatabase::findAttributeSetId(), myMoveDelayAttrIndex, myMoveGoalAttrIndex, mySimDatabase, Legion::AttributeDescriptor::name, Legion::NOT_REFLECTED, Legion::AttributeDescriptor::reflectedOnNetwork, Legion::SimulationDatabase::registerAttribute(), Legion::AttributeDescriptor::type, and Legion::Vector3d.
Referenced by SimEngine().
| void Clutter::SimEngine::finish | ( | ) |
References Legion::SimulationDatabase::beginFrame(), Legion::SimulationDatabase::destroyInstance(), Legion::SimulationDatabase::endFrame(), myEntites, myNumberEntities, mySimDatabase, simTime(), and tick().
Referenced by main().
|
protected |
References addEmbarkation(), Clutter::coerce(), Legion::SimulationDatabase::createInstance(), Legion::Vector2d::data, myEntites, myForceId, myMax, myMin, myMoveGoalAttrIndex, myNumberEntities, myReferenceCoordinate, mySimDatabase, mySimTime, nextRand(), Legion::SimulationDatabase::reserve(), Legion::Vector2d::x, and Legion::Vector2d::y.
Referenced by tick().
|
inline |
References mySimTime.
Referenced by main(), processPauseControls(), processPlayControls(), tick(), and updateEntities().
|
protected |
Referenced by init(), and selectNewDestination().
|
protected |
References isPaused(), Legion::Span< DATA_TYPE >::size(), and togglePause().
Referenced by SimEngine().
|
protected |
References isPaused(), Legion::Span< DATA_TYPE >::size(), and togglePause().
Referenced by SimEngine().
|
protected |
References myEntites, and myNumberEntities.
Referenced by tick().
|
protected |
References Clutter::coerce(), Legion::Vector2d::data, myMax, myMin, myMoveGoalAttrIndex, myReferenceCoordinate, nextRand(), Legion::Vector3f::normalize(), vecToOrientation(), Legion::Vector2d::x, and Legion::Vector2d::y.
Referenced by updateEntities().
|
inline |
| void Clutter::SimEngine::tick | ( | ) |
| void Clutter::SimEngine::toggleForceId | ( | int | fractionToToggle | ) |
References myFractionToToggle, and updateForce().
Referenced by main(), and Clutter::ClutterCommandParser::process().
|
inline |
References myTogglePause.
Referenced by Clutter::ClutterCommandParser::process(), processPauseControls(), and processPlayControls().
|
protected |
References Legion::Vector3d::distanceFrom(), myEntites, myNumberEntities, mySimTime, and Legion::Vector3d::z.
Referenced by tick().
|
protected |
References Legion::Vector3d::data, entityAtDestination(), isPaused(), myEntites, myMoveDelayAttrIndex, myMoveGoalAttrIndex, mySimTime, Legion::Vector3f::normalize(), and selectNewDestination().
Referenced by tick().
|
protected |
References myEntites, myForceId, and myFractionToToggle.
Referenced by toggleForceId().
|
protected |
Referenced by SimEngine(), and ~SimEngine().
|
protected |
Referenced by addEmbarkation(), finish(), init(), removeEmbarkation(), SimEngine(), tick(), updateEmbarkedEntities(), updateEntities(), and updateForce().
|
protected |
Referenced by SimEngine(), and tick().
|
protected |
|
protected |
Referenced by init(), and updateForce().
|
protected |
Referenced by toggleForceId(), and updateForce().
|
protected |
Referenced by tick().
|
protected |
Referenced by init(), and selectNewDestination().
|
protected |
Referenced by init(), and selectNewDestination().
|
protected |
Referenced by extendEntityAttributes(), and updateEntities().
|
protected |
Referenced by entityAtDestination(), extendEntityAttributes(), init(), selectNewDestination(), and updateEntities().
|
protected |
Referenced by addEmbarkation(), finish(), init(), removeEmbarkation(), tick(), and updateEmbarkedEntities().
|
protected |
Referenced by tick().
|
protected |
Referenced by SimEngine(), and ~SimEngine().
|
protected |
Referenced by SimEngine(), and ~SimEngine().
|
protected |
Referenced by init(), and selectNewDestination().
|
protected |
Referenced by addEmbarkation(), extendEntityAttributes(), finish(), init(), and SimEngine().
|
protected |
Referenced by init(), isPaused(), simTime(), tick(), updateEmbarkedEntities(), and updateEntities().
|
protected |
Referenced by tick(), and togglePause().
|
protected |
Referenced by SimEngine().