|
| | SimEngine (Legion::SimulationDatabase *db, Legion::Vector2d minBounds, Legion::Vector2d maxBounds, Legion::Vector2d referenceCoordinate, int maxEntites, int testCase) |
| |
| | ~SimEngine () |
| |
| void | finish () |
| |
| void | tick () |
| |
| void | togglePause () |
| |
| bool | isPaused () const |
| |
| double | simTime () |
| |
| | SimEngine (Legion::SimulationDatabase *db, Legion::Vector2d minBounds, Legion::Vector2d maxBounds, Legion::Vector2d referenceCoordinate, int maxEntites, int forceId) |
| |
| | ~SimEngine () |
| |
| void | finish () |
| |
| void | tick () |
| |
| void | togglePause () |
| |
| void | toggleForceId (int fractionToToggle) |
| |
| double | simTime () |
| |
References Legion::ControlManager::addControlCallback(), extendEntityAttributes(), myControlManager, myEntites, myPauseCallbackHandle, myPlayCallbackHandle, mySimDatabase, processPauseControls(), processPlayControls(), Legion::SimulationDatabase::reserve(), TEST_CASE_MAX, TEST_CASE_MIN, and TestCase.
| Clutter::SimEngine::~SimEngine |
( |
| ) |
|
| Clutter::SimEngine::~SimEngine |
( |
| ) |
|
| void Clutter::SimEngine::addEmbarkation |
( |
| ) |
|
|
protected |
| void Clutter::SimEngine::addEmbarkationBack |
( |
| ) |
|
|
protected |
| void Clutter::SimEngine::addHumanComponents |
( |
LOM::WriteEntityRepository * |
ent, |
|
|
int |
entityId |
|
) |
| |
|
protected |
| bool Clutter::SimEngine::entityAtDestination |
( |
LOM::WriteEntityRepository * |
ent | ) |
|
|
protected |
| bool Clutter::SimEngine::entityAtDestination |
( |
LOM::WriteEntityRepository * |
ent | ) |
|
|
protected |
| void Clutter::SimEngine::extendEntityAttributes |
( |
| ) |
|
|
protected |
| void Clutter::SimEngine::extendEntityAttributes |
( |
| ) |
|
|
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 |
( |
| ) |
|
| void Clutter::SimEngine::finish |
( |
| ) |
|
| bool Clutter::SimEngine::init |
( |
| ) |
|
|
protected |
References addEmbarkation(), Clutter::coerce(), Legion::SimulationDatabase::createInstance(), Legion::Vector2d::data, myEntites, myMax, myMin, myMoveGoalAttrIndex, myNumberEntities, myReferenceCoordinate, mySimDatabase, mySimTime, nextRand(), Legion::SimulationDatabase::reserve(), Legion::Vector2d::x, and Legion::Vector2d::y.
Referenced by tick().
| bool Clutter::SimEngine::init |
( |
| ) |
|
|
protected |
| bool Clutter::SimEngine::isPaused |
( |
| ) |
const |
|
inline |
| bool Clutter::SimEngine::isPaused |
( |
| ) |
const |
|
inlineprotected |
| double Clutter::SimEngine::nextRand |
( |
int |
maxRange | ) |
|
|
protected |
| double Clutter::SimEngine::nextRand |
( |
int |
maxRange | ) |
|
|
protected |
| void Clutter::SimEngine::processPauseControls |
( |
Legion::Span< LOM::PauseControl > & |
controlList | ) |
|
|
protected |
| void Clutter::SimEngine::processPauseControls |
( |
Legion::Span< LOM::PauseControl > & |
controlList | ) |
|
|
protected |
| void Clutter::SimEngine::processPlayControls |
( |
Legion::Span< LOM::PlayControl > & |
controlList | ) |
|
|
protected |
| void Clutter::SimEngine::processPlayControls |
( |
Legion::Span< LOM::PlayControl > & |
controlList | ) |
|
|
protected |
| void Clutter::SimEngine::removeEmbarkation |
( |
| ) |
|
|
protected |
| void Clutter::SimEngine::selectNewDestination |
( |
LOM::WriteEntityRepository * |
ent | ) |
|
|
protected |
| void Clutter::SimEngine::selectNewDestination |
( |
LOM::WriteEntityRepository * |
ent | ) |
|
|
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().
| double Clutter::SimEngine::simTime |
( |
| ) |
|
|
inline |
| double Clutter::SimEngine::simTime |
( |
| ) |
|
|
inline |
| void Clutter::SimEngine::tick |
( |
| ) |
|
| void Clutter::SimEngine::tick |
( |
| ) |
|
References addEmbarkationBack(), init(), isPaused(), myEntites, myIsInitalized, myNumberEntities, mySimTime, myTogglePause, removeEmbarkation(), tickcount, updateEmbarkedEntities(), and updateEntities().
Referenced by finish(), and main().
| void Clutter::SimEngine::toggleForceId |
( |
int |
fractionToToggle | ) |
|
| void Clutter::SimEngine::togglePause |
( |
| ) |
|
|
inline |
| void Clutter::SimEngine::togglePause |
( |
| ) |
|
|
inline |
| void Clutter::SimEngine::updateEmbarkedEntities |
( |
| ) |
|
|
protected |
| void Clutter::SimEngine::updateEntities |
( |
int |
firstEntityIndex, |
|
|
int |
numberOfEntites |
|
) |
| |
|
protected |
| void Clutter::SimEngine::updateEntities |
( |
int |
firstEntityIndex, |
|
|
int |
numberOfEntites |
|
) |
| |
|
protected |
| void Clutter::SimEngine::updateForce |
( |
| ) |
|
|
protected |
| void Clutter::SimEngine::updateForce |
( |
| ) |
|
|
protected |
| std::vector<std::pair<LOM::WriteEntityRepository, bool> > Clutter::SimEngine::myEntites |
|
protected |
| std::vector<LOM::WriteEntityRepository> Clutter::SimEngine::myEntites |
|
protected |
| LOM::EntityView* Clutter::SimEngine::myEntityView |
|
protected |
| int Clutter::SimEngine::myForceId |
|
protected |
| int Clutter::SimEngine::myFractionToToggle |
|
protected |
| bool Clutter::SimEngine::myIsInitalized |
|
protected |
| int Clutter::SimEngine::myNumberEntities |
|
protected |
| int Clutter::SimEngine::myNumberRemoteEntities |
|
protected |
| MAK::SimTime Clutter::SimEngine::mySimTime |
|
protected |
| bool Clutter::SimEngine::myTogglePause |
|
protected |
The documentation for this class was generated from the following files: