Leistungsstarkes Game Framework
The game framework based on game framework by Woei Kae Chen
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Enumerations
gamecore.h File Reference
#include <list>
#include <vector>
#include <map>

Go to the source code of this file.

Classes

class  game_framework::CSpecialEffect
 
class  game_framework::CDDraw
 
class  game_framework::CGameState
 
class  game_framework::CGame
 

Namespaces

namespace  game_framework
 

Macros

#define GAME_ASSERT(boolexp, str)
 

Enumerations

enum  GAME_STATES { GAME_STATE_INIT , GAME_STATE_RUN , GAME_STATE_OVER }
 

Macro Definition Documentation

◆ GAME_ASSERT

#define GAME_ASSERT (   boolexp,
  str 
)
Value:
if (!(boolexp)) { \
int id; \
char s[300]=""; \
sprintf(s,"Game fatal error:\n\n%s\n\nFile: %s\n\nLine: %d" \
"\n\n(Press Retry to debug the application, " \
"if it is executed in debug mode.)" \
"\n(Press Cancel otherwise.)", \
str , __FILE__,__LINE__); \
id = AfxMessageBox(s, MB_RETRYCANCEL); \
\
if (id == IDCANCEL) \
exit(1); \
AfxDebugBreak(); \
}

Enumeration Type Documentation

◆ GAME_STATES

Enumerator
GAME_STATE_INIT 
GAME_STATE_RUN 
GAME_STATE_OVER