A file for TetriCycle menu functions. More...
Go to the source code of this file.
Defines | |
#define | NULL 0 |
Typedefs | |
typedef struct _gx_color | GXColor |
Enumerations | |
enum | { TCYC_MENU_NONE, TCYC_MENU_EXIT, TCYC_MENU_MAIN, TCYC_MENU_GAME } |
Functions | |
void | TCYC_MenuLoop () |
The game state loop. | |
void | TCYC_MenuPause (const char *pauseTxt=NULL, GXColor *txtColor=NULL) |
Pause the game. | |
void | TCYC_MenuError (const char *errorTxt) |
Displays an error message and exits the program. |
A file for TetriCycle menu functions.
Definition in file tcyc_menu.h.
void TCYC_MenuError | ( | const char * | errorTxt | ) |
Displays an error message and exits the program.
Example:
if (g_totalPowerups > MAX_POWERUPS) { char errorBuf[60] = "In defines_Powerup.h you must set MAX_POWERUPS to "; sprintf(errorBuf + 50, "%d.", g_totalPowerups); TCYC_MenuError(errorBuf); }
Definition at line 200 of file tcyc_menu.cpp.