OpenVideo Documentation

   Main Page       Modules       Class Hierarchy       Alphabetical List       Compound List       File List       Compound Members       Related Pages   

PHAL::Game Class Reference

#include <game.h>

Inherits PHAL::GameBase.

Inherited by TestWinCE.

List of all members.

Public Member Functions

 Game ()
 ~Game ()
bool Run ()

Protected Member Functions

Display * GetDisplay ()
void Shutdown ()
virtual bool OnInitialize ()
virtual void OnShutdown ()
virtual bool OnGameLoop ()
virtual void OnSuspend ()
virtual void OnResume ()
virtual void OnKeyDown (int key)
virtual void OnKeyUp (int key)
virtual void OnStylusDown (Point p)
virtual void OnStylusMove (Point p)
virtual void OnStylusUp (Point p)
const char * GetFPSString () const

Protected Attributes

Config m_config

Private Member Functions

bool Initialize ()
void BuildFPSString (int fps)

Private Attributes

bool m_bShutdown
Display * m_display
uint32_t m_lastInactivityReset
uint32_t m_lastFPSTime
uint32_t m_nbFrames
int m_fps
char m_fpsString [7]


Constructor & Destructor Documentation

PHAL::Game::Game  ) 
 

Definition at line 21 of file game.cpp.

PHAL::Game::~Game  ) 
 

Definition at line 28 of file game.cpp.

References m_display.


Member Function Documentation

void PHAL::Game::BuildFPSString int  fps  )  [private]
 

Definition at line 75 of file game.cpp.

References m_fpsString.

Referenced by OnGameLoop(), and OnInitialize().

Display* PHAL::Game::GetDisplay  )  [inline, protected]
 

Definition at line 42 of file game.h.

References m_display.

Referenced by TestWinCE::OnGameLoop().

const char* PHAL::Game::GetFPSString  )  const [inline, protected]
 

Definition at line 71 of file game.h.

References m_fpsString.

Referenced by TestWinCE::OnGameLoop().

bool PHAL::Game::Initialize  )  [private]
 

Definition at line 35 of file game.cpp.

References PHAL::GameBase::GetWindow(), PHAL::GameBase::Initialize(), m_bShutdown, m_config, m_display, and m_lastInactivityReset.

Referenced by Run().

bool PHAL::Game::OnGameLoop  )  [protected, virtual]
 

Implements PHAL::IGame.

Reimplemented in TestWinCE.

Definition at line 120 of file game.cpp.

References BuildFPSString(), m_bShutdown, m_fps, m_lastFPSTime, m_lastInactivityReset, m_nbFrames, and PHAL::GameBase::ResetInactivity().

bool PHAL::Game::OnInitialize  )  [protected, virtual]
 

Implements PHAL::IGame.

Reimplemented in TestWinCE.

Definition at line 101 of file game.cpp.

References BuildFPSString(), m_fps, m_lastFPSTime, and m_nbFrames.

Referenced by Run().

void PHAL::Game::OnKeyDown int  key  )  [protected, virtual]
 

Implements PHAL::IGame.

Definition at line 171 of file game.cpp.

References Shutdown().

void PHAL::Game::OnKeyUp int  key  )  [protected, virtual]
 

Implements PHAL::IGame.

Definition at line 177 of file game.cpp.

void PHAL::Game::OnResume  )  [protected, virtual]
 

Implements PHAL::IGame.

Definition at line 161 of file game.cpp.

References m_display, and m_lastInactivityReset.

void PHAL::Game::OnShutdown  )  [protected, virtual]
 

Implements PHAL::IGame.

Reimplemented in TestWinCE.

Definition at line 113 of file game.cpp.

References m_display.

void PHAL::Game::OnStylusDown Point  p  )  [protected, virtual]
 

Implements PHAL::IGame.

Definition at line 182 of file game.cpp.

void PHAL::Game::OnStylusMove Point  p  )  [protected, virtual]
 

Implements PHAL::IGame.

Definition at line 187 of file game.cpp.

void PHAL::Game::OnStylusUp Point  p  )  [protected, virtual]
 

Implements PHAL::IGame.

Definition at line 192 of file game.cpp.

void PHAL::Game::OnSuspend  )  [protected, virtual]
 

Implements PHAL::IGame.

Definition at line 153 of file game.cpp.

References m_display.

bool PHAL::Game::Run  ) 
 

Reimplemented from PHAL::GameBase.

Definition at line 55 of file game.cpp.

References Initialize(), OnInitialize(), and PHAL::GameBase::Run().

void PHAL::Game::Shutdown  )  [protected]
 

Definition at line 68 of file game.cpp.

References m_bShutdown.

Referenced by OnKeyDown().


Member Data Documentation

bool PHAL::Game::m_bShutdown [private]
 

Definition at line 83 of file game.h.

Referenced by Initialize(), OnGameLoop(), and Shutdown().

Config PHAL::Game::m_config [protected]
 

Definition at line 68 of file game.h.

Referenced by Initialize(), and TestWinCE::TestWinCE().

Display* PHAL::Game::m_display [private]
 

Definition at line 84 of file game.h.

Referenced by GetDisplay(), Initialize(), OnResume(), OnShutdown(), OnSuspend(), and ~Game().

int PHAL::Game::m_fps [private]
 

Definition at line 90 of file game.h.

Referenced by OnGameLoop(), and OnInitialize().

char PHAL::Game::m_fpsString[7] [private]
 

Definition at line 91 of file game.h.

Referenced by BuildFPSString(), and GetFPSString().

uint32_t PHAL::Game::m_lastFPSTime [private]
 

Definition at line 88 of file game.h.

Referenced by OnGameLoop(), and OnInitialize().

uint32_t PHAL::Game::m_lastInactivityReset [private]
 

Definition at line 85 of file game.h.

Referenced by Initialize(), OnGameLoop(), and OnResume().

uint32_t PHAL::Game::m_nbFrames [private]
 

Definition at line 89 of file game.h.

Referenced by OnGameLoop(), and OnInitialize().


The documentation for this class was generated from the following files:
 This page was generated at Wed May 31 13:04:19 2006 for OpenVideo by Doxygen.
 If you have any comments, please send a message to schmalstieg@icg.tu-graz.ac.at.
www.studierstube.org