OpenVideo Documentation

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

PHAL::GameBase Class Reference

#include <GameBase.h>

Inherits PHAL::IGame.

Inherited by PHAL::Game.

List of all members.

Public Member Functions

 GameBase ()
 ~GameBase ()
void SetUID (unsigned uid)

Protected Member Functions

bool Initialize (const Config &config)
HWND GetWindow () const
bool Run ()
void ResetInactivity () const

Private Member Functions

LRESULT MessageHandler (UINT msg, WPARAM wparam, LPARAM lparam)

Static Private Member Functions

static LRESULT CALLBACK MessageHandler (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)

Private Attributes

HWND m_hwnd
bool m_bSuspended
unsigned m_uid

Static Private Attributes

static GameBases_instance = 0


Constructor & Destructor Documentation

PHAL::GameBase::GameBase  ) 
 

Definition at line 85 of file GameBase.cpp.

References s_instance.

PHAL::GameBase::~GameBase  ) 
 

Definition at line 95 of file GameBase.cpp.

References s_instance.


Member Function Documentation

HWND PHAL::GameBase::GetWindow  )  const [inline, protected]
 

Definition at line 42 of file GameBase.h.

References m_hwnd.

Referenced by PHAL::Game::Initialize().

bool PHAL::GameBase::Initialize const Config config  )  [protected]
 

Definition at line 102 of file GameBase.cpp.

References height, PHAL::Config::m_appName, m_hwnd, m_uid, MessageHandler(), and width.

Referenced by PHAL::Game::Initialize().

LRESULT CALLBACK PHAL::GameBase::MessageHandler HWND  hwnd,
UINT  msg,
WPARAM  wparam,
LPARAM  lparam
[static, private]
 

Definition at line 241 of file GameBase.cpp.

References m_hwnd, MessageHandler(), and s_instance.

LRESULT PHAL::GameBase::MessageHandler UINT  msg,
WPARAM  wparam,
LPARAM  lparam
[private]
 

Definition at line 23 of file GameBase.cpp.

References m_bSuspended, m_hwnd, PHAL::IGame::OnKeyDown(), PHAL::IGame::OnKeyUp(), PHAL::IGame::OnResume(), PHAL::IGame::OnShutdown(), PHAL::IGame::OnStylusDown(), PHAL::IGame::OnStylusMove(), PHAL::IGame::OnStylusUp(), and PHAL::IGame::OnSuspend().

Referenced by Initialize(), and MessageHandler().

void PHAL::GameBase::ResetInactivity  )  const [protected]
 

Definition at line 220 of file GameBase.cpp.

Referenced by PHAL::Game::OnGameLoop().

bool PHAL::GameBase::Run  )  [protected]
 

Reimplemented in PHAL::Game.

Definition at line 175 of file GameBase.cpp.

References m_bSuspended, m_hwnd, and PHAL::IGame::OnGameLoop().

Referenced by PHAL::Game::Run().

void PHAL::GameBase::SetUID unsigned  uid  )  [inline]
 

Definition at line 33 of file GameBase.h.

References m_uid.


Member Data Documentation

bool PHAL::GameBase::m_bSuspended [private]
 

Definition at line 58 of file GameBase.h.

Referenced by MessageHandler(), and Run().

HWND PHAL::GameBase::m_hwnd [private]
 

Definition at line 57 of file GameBase.h.

Referenced by GetWindow(), Initialize(), MessageHandler(), and Run().

unsigned PHAL::GameBase::m_uid [private]
 

Definition at line 59 of file GameBase.h.

Referenced by Initialize(), and SetUID().

GameBase * PHAL::GameBase::s_instance = 0 [static, private]
 

Definition at line 238 of file GameBase.cpp.

Referenced by GameBase(), MessageHandler(), and ~GameBase().


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