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

TGameData Class Reference

Data assoicated with a game. More...

#include <TGameData.h>

Collaboration diagram for TGameData:

Collaboration graph
[legend]
List of all members.

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...


Detailed Description

Data assoicated with a game.

Contains the information that is in common between the CGame, CGameFramework and ui classes.

Definition at line 26 of file TGameData.h.


Member Enumeration Documentation

enum TGameData::TGameKey
 

Defines values for the iKeys bitmask.

Enumeration values:
ELeft  Left arrow pressed.
ERight  Right arrow pressed.
EUp  Up arrow pressed.
EDown  Down arrow pressed.
EAction1  'A' pressed, unused.
EAction2  space pressed, unused.
EAction3  Left shift pressed, fire button.
EAction4  Enter pressed, unused.
EQuit  'Q' pressed.

Definition at line 30 of file TGameData.h.

00030                   {
00031       ELeft    = 0x00000001,  
00032       ERight   = 0x00000002,  
00033       EUp      = 0x00000004,  
00034       EDown    = 0x00000008,  
00035       EAction1 = 0x00000010,  
00036       EAction2 = 0x00000020,  
00037       EAction3 = 0x00000040,  
00038       EAction4 = 0x00000080,  
00039       EQuit    = 0x20000000   
00040     };


Member Data Documentation

TUint32 TGameData::iKeys
 

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().

TUint32 TGameData::iScore
 

Players score.

Definition at line 47 of file TGameData.h.

Referenced by CGame::AddScore(), CGame::Play(), CGameFramework::RunL(), and CGameFramework::Score().

TUint32 TGameData::iLives
 

Number of lives left.

Definition at line 48 of file TGameData.h.

Referenced by CGame::Bonus(), CGameFramework::GameThread(), CGame::Play(), and CGameFramework::RunL().

TBool TGameData::iForceRedraw
 

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().

TBool TGameData::iLevelCompleted
 

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().

TLevelData TGameData::iLevel
 

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().


The documentation for this class was generated from the following file:
Documentation for Game (Beta) version 1.44.