#include <TGameData.h>
Collaboration diagram for TGameData:

Public Types | |
| enum | TGameKey { ELeft = 0x00000001, ERight = 0x00000002, EUp = 0x00000004, EDown = 0x00000008, EAction1 = 0x00000010, EAction2 = 0x00000020, EAction3 = 0x00000040, EAction4 = 0x00000080, EQuit = 0x20000000 } |
| Defines values for the iKeys bitmask. More... | |
Public Attributes | |
| TUint32 | iKeys |
| Bit mask of keys currently pressed. More... | |
| TUint32 | iScore |
| Players score. More... | |
| TUint32 | iLives |
| Number of lives left. More... | |
| TBool | iForceRedraw |
| Set to force the status area to reupdate after the game has been paused. More... | |
| TBool | iLevelCompleted |
| ETrue if CGame::Play finishes because player got to the end of the level, EFalse if the player quit or died. More... | |
| TLevelData | iLevel |
| Level information, set up by CGameFramework::LoadLevelL. More... | |
Contains the information that is in common between the CGame, CGameFramework and ui classes.
Definition at line 26 of file TGameData.h.
|
|
Defines values for the iKeys bitmask.
Definition at line 30 of file TGameData.h.
|
|
|
Bit mask of keys currently pressed. Keys bits are set when CGameFramework receives a key down event, and unset when it receives a key up event. The fire button is also unset by the CGame class when it fires a bullet. Definition at line 42 of file TGameData.h. Referenced by CGameFramework::CancelL(), CGameFramework::GameThread(), CGame::HandleKeys(), CGameFramework::LoadLevelL(), CGameFramework::Play(), and CGame::Play(). |
|
|
Players score.
Definition at line 47 of file TGameData.h. Referenced by CGame::AddScore(), CGame::Play(), CGameFramework::RunL(), and CGameFramework::Score(). |
|
|
Number of lives left.
Definition at line 48 of file TGameData.h. Referenced by CGame::Bonus(), CGameFramework::GameThread(), CGame::Play(), and CGameFramework::RunL(). |
|
|
Set to force the status area to reupdate after the game has been paused.
Definition at line 49 of file TGameData.h. Referenced by CGame::Play(), and CGameFramework::RunL(). |
|
|
ETrue if CGame::Play finishes because player got to the end of the level, EFalse if the player quit or died.
Definition at line 51 of file TGameData.h. Referenced by CGameFramework::GameThread(), CGameFramework::LoadLevelL(), CGame::Play(), and CGameFramework::RunL(). |
|
|
Level information, set up by CGameFramework::LoadLevelL.
Definition at line 56 of file TGameData.h. Referenced by CGame::Bonus(), CGame::ConstructL(), CGame::DrawEveryThing(), CGame::FirstExplosionSprite(), CGame::LastExplosionSprite(), CGameFramework::LoadLevelL(), CGame::MoveThings(), and CGame::Play(). |