PHAL::GameBase Class Reference
#include <GameBase.h>
Inherits PHAL::IGame.
Inherited by PHAL::Game.
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 GameBase * | s_instance = 0 |
Constructor & Destructor Documentation
|
|
Definition at line 85 of file GameBase.cpp. References s_instance. |
|
|
Definition at line 95 of file GameBase.cpp. References s_instance. |
Member Function Documentation
|
|
Definition at line 42 of file GameBase.h. References m_hwnd. Referenced by PHAL::Game::Initialize(). |
|
|
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(). |
|
||||||||||||||||||||
|
Definition at line 241 of file GameBase.cpp. References m_hwnd, MessageHandler(), and s_instance. |
|
||||||||||||||||
|
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(). |
|
|
Definition at line 220 of file GameBase.cpp. Referenced by PHAL::Game::OnGameLoop(). |
|
|
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(). |
|
|
Definition at line 33 of file GameBase.h. References m_uid. |
Member Data Documentation
|
|
Definition at line 58 of file GameBase.h. Referenced by MessageHandler(), and Run(). |
|
|
Definition at line 57 of file GameBase.h. Referenced by GetWindow(), Initialize(), MessageHandler(), and Run(). |
|
|
Definition at line 59 of file GameBase.h. Referenced by Initialize(), and SetUID(). |
|
|
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:
