MAK Legion 1.1 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Clutter::SimEngine Class Reference
+ Collaboration diagram for Clutter::SimEngine:

Public Member Functions

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

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 addEmbarkationBack ()
 
void updateEmbarkedEntities ()
 
void extendEntityAttributes ()
 
void updateEntities (int firstEntityIndex, int numberOfEntites)
 
bool entityAtDestination (LOM::WriteEntityRepository *ent)
 
void selectNewDestination (LOM::WriteEntityRepository *ent)
 
double nextRand (int maxRange)
 
bool init ()
 
bool isPaused () const
 
void updateForce ()
 
void processPlayControls (Legion::Span< LOM::PlayControl > &controlList)
 
void processPauseControls (Legion::Span< LOM::PauseControl > &controlList)
 
void extendEntityAttributes ()
 
void addHumanComponents (LOM::WriteEntityRepository *ent, int entityId)
 
void updateEntities (int firstEntityIndex, int numberOfEntites)
 
bool entityAtDestination (LOM::WriteEntityRepository *ent)
 
void selectNewDestination (LOM::WriteEntityRepository *ent)
 
double nextRand (int maxRange)
 

Protected Attributes

Legion::SimulationDatabasemySimDatabase
 
Legion::ControlManagermyControlManager
 
std::vector< std::pair
< LOM::WriteEntityRepository,
bool > > 
myEntites
 
Legion::Vector2d myMin
 
Legion::Vector2d myMax
 
Legion::Vector2d myReferenceCoordinate
 
int myNumberEntities
 
int myFractionToToggle
 
bool myIsInitalized
 
MAK::SimTime mySimTime
 
bool myTogglePause
 
Legion::UInt32 myMoveDelayAttrIndex
 
Legion::UInt32 myMoveGoalAttrIndex
 
Legion::UInt32 myPlayCallbackHandle
 
Legion::UInt32 myPauseCallbackHandle
 
Legion::ViewManagermyViewManager
 
Legion::EventManagermyEventManager
 
LOM::EntityView * myEntityView
 
std::vector
< LOM::WriteEntityRepository > 
myEntites
 
int myNumberRemoteEntities
 
int myForceId
 

Constructor & Destructor Documentation

Clutter::SimEngine::SimEngine ( Legion::SimulationDatabase db,
Legion::Vector2d  minBounds,
Legion::Vector2d  maxBounds,
Legion::Vector2d  referenceCoordinate,
int  maxEntites,
int  testCase 
)
Clutter::SimEngine::~SimEngine ( )
Clutter::SimEngine::SimEngine ( Legion::SimulationDatabase db,
Legion::Vector2d  minBounds,
Legion::Vector2d  maxBounds,
Legion::Vector2d  referenceCoordinate,
int  maxEntites,
int  forceId 
)
Clutter::SimEngine::~SimEngine ( )

Member Function Documentation

void Clutter::SimEngine::addEmbarkation ( )
protected

References myEntites, and myNumberEntities.

Referenced by init().

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
void Clutter::SimEngine::finish ( )
void Clutter::SimEngine::finish ( )
bool Clutter::SimEngine::init ( )
protected
bool Clutter::SimEngine::init ( )
protected
bool Clutter::SimEngine::isPaused ( ) const
inline
bool Clutter::SimEngine::isPaused ( ) const
inlineprotected

References mySimTime.

double Clutter::SimEngine::nextRand ( int  maxRange)
protected
double Clutter::SimEngine::nextRand ( int  maxRange)
protected

Referenced by init(), and selectNewDestination().

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
double Clutter::SimEngine::simTime ( )
inline

References mySimTime.

Referenced by finish(), and main().

double Clutter::SimEngine::simTime ( )
inline

References mySimTime.

void Clutter::SimEngine::tick ( )
void Clutter::SimEngine::tick ( )
void Clutter::SimEngine::toggleForceId ( int  fractionToToggle)

Referenced by main().

void Clutter::SimEngine::togglePause ( )
inline

References myTogglePause.

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

Member Data Documentation

Legion::ControlManager * Clutter::SimEngine::myControlManager
protected

Referenced by SimEngine(), and ~SimEngine().

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
Legion::EventManager* Clutter::SimEngine::myEventManager
protected
int Clutter::SimEngine::myForceId
protected
int Clutter::SimEngine::myFractionToToggle
protected
bool Clutter::SimEngine::myIsInitalized
protected

Referenced by tick().

Legion::Vector2d Clutter::SimEngine::myMax
protected

Referenced by init(), and selectNewDestination().

Legion::Vector2d Clutter::SimEngine::myMin
protected

Referenced by init(), and selectNewDestination().

Legion::UInt32 Clutter::SimEngine::myMoveDelayAttrIndex
protected
Legion::UInt32 Clutter::SimEngine::myMoveGoalAttrIndex
protected
int Clutter::SimEngine::myNumberEntities
protected
int Clutter::SimEngine::myNumberRemoteEntities
protected
Legion::UInt32 Clutter::SimEngine::myPauseCallbackHandle
protected

Referenced by SimEngine(), and ~SimEngine().

Legion::UInt32 Clutter::SimEngine::myPlayCallbackHandle
protected

Referenced by SimEngine(), and ~SimEngine().

Legion::Vector2d Clutter::SimEngine::myReferenceCoordinate
protected

Referenced by init(), and selectNewDestination().

Legion::SimulationDatabase * Clutter::SimEngine::mySimDatabase
protected
MAK::SimTime Clutter::SimEngine::mySimTime
protected
bool Clutter::SimEngine::myTogglePause
protected

Referenced by tick(), and togglePause().

Legion::ViewManager* Clutter::SimEngine::myViewManager
protected

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

Document ID: Generated on Wed May 26 15:17:05 EDT 2021 from SVN revision 229676
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)