PHAL::Game Class Reference
#include <game.h>
Inherits PHAL::GameBase.
Inherited by TestWinCE.
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
|
|
|
|
|
Definition at line 28 of file game.cpp. References m_display. |
Member Function Documentation
|
|
Definition at line 75 of file game.cpp. References m_fpsString. Referenced by OnGameLoop(), and OnInitialize(). |
|
|
Definition at line 42 of file game.h. References m_display. Referenced by TestWinCE::OnGameLoop(). |
|
|
Definition at line 71 of file game.h. References m_fpsString. Referenced by TestWinCE::OnGameLoop(). |
|
|
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(). |
|
|
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(). |
|
|
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(). |
|
|
Implements PHAL::IGame. Definition at line 171 of file game.cpp. References Shutdown(). |
|
|
Implements PHAL::IGame. |
|
|
Implements PHAL::IGame. Definition at line 161 of file game.cpp. References m_display, and m_lastInactivityReset. |
|
|
Implements PHAL::IGame. Reimplemented in TestWinCE. Definition at line 113 of file game.cpp. References m_display. |
|
|
Implements PHAL::IGame. |
|
|
Implements PHAL::IGame. |
|
|
Implements PHAL::IGame. |
|
|
Implements PHAL::IGame. Definition at line 153 of file game.cpp. References m_display. |
|
|
Reimplemented from PHAL::GameBase. Definition at line 55 of file game.cpp. References Initialize(), OnInitialize(), and PHAL::GameBase::Run(). |
|
|
Definition at line 68 of file game.cpp. References m_bShutdown. Referenced by OnKeyDown(). |
Member Data Documentation
|
|
Definition at line 83 of file game.h. Referenced by Initialize(), OnGameLoop(), and Shutdown(). |
|
|
Definition at line 68 of file game.h. Referenced by Initialize(), and TestWinCE::TestWinCE(). |
|
|
Definition at line 84 of file game.h. Referenced by GetDisplay(), Initialize(), OnResume(), OnShutdown(), OnSuspend(), and ~Game(). |
|
|
Definition at line 90 of file game.h. Referenced by OnGameLoop(), and OnInitialize(). |
|
|
Definition at line 91 of file game.h. Referenced by BuildFPSString(), and GetFPSString(). |
|
|
Definition at line 88 of file game.h. Referenced by OnGameLoop(), and OnInitialize(). |
|
|
Definition at line 85 of file game.h. Referenced by Initialize(), OnGameLoop(), and OnResume(). |
|
|
Definition at line 89 of file game.h. Referenced by OnGameLoop(), and OnInitialize(). |
The documentation for this class was generated from the following files:
