MAK Legion 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 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::SimulationDatabasemySimDatabase
 
Legion::ViewManagermyViewManager
 
Legion::EventManagermyEventManager
 
Legion::ControlManagermyControlManager
 
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
 

Constructor & Destructor Documentation

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
bool Clutter::SimEngine::entityAtDestination ( LOM::WriteEntityRepository *  ent)
protected
void Clutter::SimEngine::extendEntityAttributes ( )
protected
void Clutter::SimEngine::finish ( )
bool Clutter::SimEngine::init ( )
protected
bool Clutter::SimEngine::isPaused ( ) const
inline
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::processPlayControls ( Legion::Span< LOM::PlayControl > &  controlList)
protected
void Clutter::SimEngine::removeEmbarkation ( )
protected

References myEntites, and myNumberEntities.

Referenced by tick().

void Clutter::SimEngine::selectNewDestination ( LOM::WriteEntityRepository *  ent)
protected
double Clutter::SimEngine::simTime ( )
inline

References mySimTime.

Referenced by finish(), and main().

void Clutter::SimEngine::tick ( )
void Clutter::SimEngine::toggleForceId ( int  fractionToToggle)
void Clutter::SimEngine::togglePause ( )
inline
void Clutter::SimEngine::updateEmbarkedEntities ( )
protected
void Clutter::SimEngine::updateEntities ( int  firstEntityIndex,
int  numberOfEntites 
)
protected
void Clutter::SimEngine::updateForce ( )
protected

References myEntites, myForceId, and myFractionToToggle.

Referenced by toggleForceId().

Member Data Documentation

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

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

std::vector<LOM::WriteEntityRepository> Clutter::SimEngine::myEntites
protected
LOM::EntityView* Clutter::SimEngine::myEntityView
protected

Referenced by SimEngine(), and tick().

Legion::EventManager* Clutter::SimEngine::myEventManager
protected
int Clutter::SimEngine::myForceId
protected

Referenced by init(), and updateForce().

int Clutter::SimEngine::myFractionToToggle
protected

Referenced by toggleForceId(), and updateForce().

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

Referenced by tick().

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

Referenced by SimEngine().


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

Document ID: Generated on Mon Mar 8 15:11:30 EST 2021 from SVN revision 225633
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)