ScummVM API documentation
hpl::cGame Class Reference

Public Member Functions

 cGame (LowLevelGameSetup *apGameSetup, cSetupVarContainer &aVars)
 
 cGame (LowLevelGameSetup *apGameSetup, int alWidth, int alHeight, int alBpp, bool abFullscreen, unsigned int alUpdateRate=60, int alMultisampling=0)
 
void Run ()
 
void Exit ()
 
cSceneGetScene ()
 
cResourcesGetResources ()
 
cUpdaterGetUpdater ()
 
cSystemGetSystem ()
 
cInputGetInput ()
 
cGraphicsGetGraphics ()
 
cSoundGetSound ()
 
cPhysicsGetPhysics ()
 
cAIGetAI ()
 
cGuiGetGui ()
 
void ResetLogicTimer ()
 
void SetUpdatesPerSec (int alUpdatesPerSec)
 
int GetUpdatesPerSec ()
 
float GetStepSize ()
 
cLogicTimerGetLogicTimer ()
 
float GetFPS ()
 
void SetFPSUpdateRate (float afSec)
 
float GetFPSUpdateRate ()
 
float GetFrameTime ()
 
float GetUpdateTime ()
 
double GetGameTime ()
 
void SetLimitFPS (bool abX)
 
bool GetLimitFPS ()
 

Member Function Documentation

◆ Run()

void hpl::cGame::Run ( )

Starts the game loop. To make stuff run they must be added as updatables..

◆ Exit()

void hpl::cGame::Exit ( )

Exists the game.

◆ GetScene()

cScene* hpl::cGame::GetScene ( )
Returns
A pointer to Scene

◆ GetResources()

cResources* hpl::cGame::GetResources ( )
Returns
A pointer to Resources

◆ GetUpdater()

cUpdater* hpl::cGame::GetUpdater ( )
Returns
A pointer to the Updater

◆ GetSystem()

cSystem* hpl::cGame::GetSystem ( )
Returns
A pointer to the System

◆ GetInput()

cInput* hpl::cGame::GetInput ( )
Returns
A pointer to the Input

◆ GetGraphics()

cGraphics* hpl::cGame::GetGraphics ( )
Returns
A pointer to the Graphics

◆ GetSound()

cSound* hpl::cGame::GetSound ( )
Returns
A pointer to the Sound

◆ GetPhysics()

cPhysics* hpl::cGame::GetPhysics ( )
Returns
A pointer to the Physics

◆ GetAI()

cAI* hpl::cGame::GetAI ( )
Returns
A pointer to the AI

◆ GetGui()

cGui* hpl::cGame::GetGui ( )
Returns
A pointer to the Gui

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