#include <CDebug.h>
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 CDebug & | GetInstance () |
Private Attributes | |
CTimer * | m_pTimer |
CGame * | m_pGame |
CMatch * | m_pMatch |
float | m_GameSpeed |
bool | m_CanBombersDie |
bool | m_CanBombersBeSick |
bool | m_CanBombersKick |
bool | m_IsComputerConsoleActive [5] |
CDebug::CDebug | ( | ) |
CDebug::~CDebug | ( | ) |
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 | ) |
void CDebug::Destroy | ( | void | ) |
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)
VirtualKeyCode | Key to handle | |
Modifier | Modifier (SDL only) |
bool CDebug::CanBombersDie | ( | ) | [inline] |
bool CDebug::CanBombersBeSick | ( | ) | [inline] |
bool CDebug::CanBombersKick | ( | ) | [inline] |
bool CDebug::IsComputerConsoleActive | ( | int | Player | ) | [inline] |
CTimer* CDebug::m_pTimer [private] |
CGame* CDebug::m_pGame [private] |
CMatch* CDebug::m_pMatch [private] |
float CDebug::m_GameSpeed [private] |
bool CDebug::m_CanBombersDie [private] |
bool CDebug::m_CanBombersBeSick [private] |
bool CDebug::m_CanBombersKick [private] |
bool CDebug::m_IsComputerConsoleActive[5] [private] |