Functions | Variables

code/source/tcyc_menu.cpp File Reference

#include "tcyc_menu.h"
#include <unistd.h>
#include <gcmodplay.h>
#include "Player.h"
#include "Options.h"
#include "PowerupUtils.h"
#include "libwiigui/gui.h"
#include "menu.h"
#include "main.h"
#include "tcyc_input.h"

Go to the source code of this file.

Functions

void TCYC_MenuPause (const char *pauseTxt, GXColor *txtColor)
 Pause the game.
void TCYC_MenuError (const char *errorTxt)
 Displays an error message and exits the program.
void TCYC_MenuLoop ()
 The game state loop.

Variables

GuiImageData * pointer [MAX_PLAYERS]
 pointing icon, represented by a hand
GuiImage * bgImg
 the background image
GuiSound * bgMusic
 the background music
GuiWindow * mainWindow
 the main window
Playerg_players
 the player instances
MODPlay g_modPlay
 used for playing the game music
bool g_isEditMode
 true when editing the playfield
bool g_isClassicMode
 classic mode
int g_tcycMenu
 the current menu state
Optionsg_options
 the global options
GuiTrigger * trigA
GuiTrigger * trigHome
GuiSound * btnSoundOver
GuiSound * g_heartbeatSound
GuiSound * g_tetrisCheerSound
 the tetris sound effect
GuiImageData * btnOutline
GuiImageData * btnOutlineOver
GuiImageData * btnLargeOutline
GuiImageData * btnLargeOutlineOver
GuiImageData * btnData40x40Square
GuiImageData * btnData40x40SquareOver
GuiImageData * btnData80x40
GuiImageData * btnData80x40Over
GuiImageData * btnDataMinus
GuiImageData * btnDataMinusOver
GuiImageData * btnDataPlus
GuiImageData * btnDataPlusOver
GuiImageData * tetrisLove
GuiImageData * grabber [MAX_PLAYERS]
GuiImageData * debug_grabber1
GuiImageData * debug_grabber2
GuiImageData * debug_grabber3
GuiImageData * debug_grabber4

Detailed Description

Author:
Cale Scholl / calvinss4

Definition in file tcyc_menu.cpp.


Function Documentation

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.