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

TGamePanics Class Reference

Used for asserts in various places in the code. More...

#include <TGamePanics.h>

List of all members.

Public Types

enum  TGamePanicNo {
  ENoLevelLoaded, ESpriteNumberNotSet, ELoadLevelWithLevelLoaded, ENegativeDamage,
  ESpriteRemoveCalledWithoutPlot
}
 panic reason codes. More...


Static Public Methods

void Panic (TGamePanicNo aReason)
 Panic the application. More...


Detailed Description

Used for asserts in various places in the code.

Definition at line 21 of file TGamePanics.h.


Member Enumeration Documentation

enum TGamePanics::TGamePanicNo
 

panic reason codes.

Enumeration values:
ENoLevelLoaded  CGameFramework::RunL() called with no level loaded.
ESpriteNumberNotSet  TSprite32x24::Plot() called with no sprite set.
ELoadLevelWithLevelLoaded  CGameFramework::LoadLevelL() called when a level was already loaded.
ENegativeDamage  TBadGuy::HitBullet worked out negative damage.
ESpriteRemoveCalledWithoutPlot  TSprite32x24::Remove() called before TSprite32x24::Plot().

Definition at line 24 of file TGamePanics.h.


Member Function Documentation

void TGamePanics::Panic TGamePanicNo    aReason [static]
 

Panic the application.

Definition at line 21 of file TGamePanics.cpp.

Referenced by TBadGuy::HitBullet(), CGameFramework::LoadLevelL(), TSprite32x24::Plot(), TSprite32x24::Remove(), and CGameFramework::RunL().

00021                                             {
00022   _LIT(KPanic,"Game");
00023   User::Panic(KPanic,aReason);
00024 }


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