CDebug Class Reference

This class is for debugging purposes. More...

#include <CDebug.h>

Collaboration diagram for CDebug:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CDebug ()
 ~CDebug ()
void SetTimer (CTimer *pTimer)
void SetGame (CGame *pGame)
void SetMatch (CMatch *pMatch)
void Create ()
void Destroy ()
void HandleKey (DWORD VirtualKeyCode, DWORD Modifier)
 Handles a key code for debug purposes.
bool CanBombersDie ()
bool CanBombersBeSick ()
bool CanBombersKick ()
bool IsComputerConsoleActive (int Player)

Static Public Member Functions

static CDebugGetInstance ()

Private Attributes

CTimerm_pTimer
CGamem_pGame
CMatchm_pMatch
float m_GameSpeed
bool m_CanBombersDie
bool m_CanBombersBeSick
bool m_CanBombersKick
bool m_IsComputerConsoleActive [5]


Detailed Description

This class is for debugging purposes.

Constructor & Destructor Documentation

CDebug::CDebug (  ) 

CDebug::~CDebug (  ) 


Member Function Documentation

CDebug & CDebug::GetInstance (  )  [static]

void CDebug::SetTimer ( CTimer pTimer  )  [inline]

void CDebug::SetGame ( CGame pGame  )  [inline]

void CDebug::SetMatch ( CMatch pMatch  )  [inline]

void CDebug::Create ( void   ) 

Here is the call graph for this function:

void CDebug::Destroy ( void   ) 

Here is the call graph for this function:

void CDebug::HandleKey ( DWORD  VirtualKeyCode,
DWORD  Modifier 
)

Handles a key code for debug purposes.

While holding the CTRL key:

CONTROL GAME SPEED The enter key on the numeric pad sets the game speed to normal The * on the numeric pad makes the game very fast The / on the numeric pad makes the game very slow The + on the numeric pad increases the game speed The - on the numeric pad decreases the game speed

START OR RESTART A MATCH Press the F1 key You may run out of bombs if you do this to often. Example: one bomber is holding a bomb while restarting the match by pressing Ctrl+F1. This is because m_BombsInUse of CArena is not reduced. I guess it can't happen in a 'normal' game because the bomber throws his bomb when he dies or he is the winner of the match. At least I couldn't recreate this issue in a 'normal' game.

TOGGLE THE BOMBERS' INVULNERABILITY Press the F2 key

TOGGLE THE DEBUGGING INFORMATION OF EACH COMPUTER PLAYER Press the number of the player (0-4)

Parameters:
VirtualKeyCode Key to handle
Modifier Modifier (SDL only)

Here is the call graph for this function:

bool CDebug::CanBombersDie (  )  [inline]

bool CDebug::CanBombersBeSick (  )  [inline]

bool CDebug::CanBombersKick (  )  [inline]

bool CDebug::IsComputerConsoleActive ( int  Player  )  [inline]


Member Data Documentation

CGame* CDebug::m_pGame [private]

float CDebug::m_GameSpeed [private]

bool CDebug::m_CanBombersDie [private]

bool CDebug::m_CanBombersKick [private]


The documentation for this class was generated from the following files:

Generated on Sat Oct 18 12:26:43 2008 for Bombermaaan by  doxygen 1.5.5
Visit the Bombermaaan project page
SourceForge.net Logo