HoverRace  2.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
HoverRace::Model::GameSession Class Reference

#include <GameSession.h>

Public Member Functions

 GameSession (bool pAllowRendering=true)
 
 ~GameSession ()
 
LevelGetCurrentLevel () const
 
MR_SimulationTime GetSimulationTime () const
 
const char * GetTitle () const
 
bool LoadNew (const char *pTitle, std::shared_ptr< Track > track, const Model::GameOptions &gameOpts)
 
void SetSimulationTime (MR_SimulationTime)
 
void Simulate ()
 
void SimulateLateElement (MR_FreeElementHandle pElement, MR_SimulationTime pDuration, int pRoom)
 

Private Member Functions

void Clean ()
 
void ComputeShapeContactEffects (int pCurrentRoom, FreeElement *pActor, const RoomContactSpec &pLastSpec, MR_FastArrayBase< int > *pVisitedRooms, int pMaxDepth, MR_SimulationTime pDuration)
 
bool LoadLevel (const Model::GameOptions &gameOpts)
 
void SimulateFreeElems (MR_SimulationTime pDuration)
 
int SimulateOneFreeElem (MR_SimulationTime pTimeToSimulate, MR_FreeElementHandle pElementHandle, int pRoom)
 
void SimulateSurfaceElems (MR_SimulationTime pDuration)
 

Private Attributes

bool mAllowRendering
 
int mCurrentLevelNumber
 
Util::OS::timestamp_t mLastSimulateCallTime
 Time in ms obtained by timeGetTime. More...
 
MR_SimulationTime mSimulationTime
 Time simulated since the session start. More...
 
std::string mTitle
 
std::shared_ptr< Tracktrack
 

Constructor & Destructor Documentation

HoverRace::Model::GameSession::GameSession ( bool  pAllowRendering = true)
HoverRace::Model::GameSession::~GameSession ( )

Member Function Documentation

void HoverRace::Model::GameSession::Clean ( )
private
void HoverRace::Model::GameSession::ComputeShapeContactEffects ( int  pCurrentRoom,
FreeElement pActor,
const RoomContactSpec pLastSpec,
MR_FastArrayBase< int > *  pVisitedRooms,
int  pMaxDepth,
MR_SimulationTime  pDuration 
)
private
Level * HoverRace::Model::GameSession::GetCurrentLevel ( ) const
MR_SimulationTime HoverRace::Model::GameSession::GetSimulationTime ( ) const
const char * HoverRace::Model::GameSession::GetTitle ( ) const
bool HoverRace::Model::GameSession::LoadLevel ( const Model::GameOptions gameOpts)
private
bool HoverRace::Model::GameSession::LoadNew ( const char *  pTitle,
std::shared_ptr< Track track,
const Model::GameOptions gameOpts 
)
void HoverRace::Model::GameSession::SetSimulationTime ( MR_SimulationTime  pTime)
void HoverRace::Model::GameSession::Simulate ( )
void HoverRace::Model::GameSession::SimulateFreeElems ( MR_SimulationTime  pDuration)
private
void HoverRace::Model::GameSession::SimulateLateElement ( MR_FreeElementHandle  pElement,
MR_SimulationTime  pDuration,
int  pRoom 
)
int HoverRace::Model::GameSession::SimulateOneFreeElem ( MR_SimulationTime  pTimeToSimulate,
MR_FreeElementHandle  pElementHandle,
int  pRoom 
)
private
void HoverRace::Model::GameSession::SimulateSurfaceElems ( MR_SimulationTime  pDuration)
private

Member Data Documentation

bool HoverRace::Model::GameSession::mAllowRendering
private
int HoverRace::Model::GameSession::mCurrentLevelNumber
private
Util::OS::timestamp_t HoverRace::Model::GameSession::mLastSimulateCallTime
private

Time in ms obtained by timeGetTime.

MR_SimulationTime HoverRace::Model::GameSession::mSimulationTime
private

Time simulated since the session start.

std::string HoverRace::Model::GameSession::mTitle
private
std::shared_ptr<Track> HoverRace::Model::GameSession::track
private

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