#include <MainMenuController.h>
Inherits GameController.

Public Member Functions | |
| MainMenuController () | |
| virtual | ~MainMenuController () |
| void | step () |
| This function will be called each time unit of the game. | |
| void | draw (BITMAP *bmp) |
| This function will also be called each screen refresh to draw to the buffer. | |
| void | setComplete () |
| bool | isComplete () |
| This function can be called to check if the GameController is done. | |
| int | getExitCode () |
| This function can be used when the GameController can end in multiple ways. | |
| void | setExitCode (int exitCode) |
Private Attributes | |
| bool | complete |
| Button * | NewGame |
| The buttons on the screen. | |
| Button * | LoadGame |
| Button * | QuitGame |
| WaveSound * | ButtonSample |
| The sound the buttons make. | |
| int | exitCode |
| This will be set to a MainMenuExit code based on what button is clicked. | |
| MainMenuController::MainMenuController | ( | ) |
| MainMenuController::~MainMenuController | ( | ) | [virtual] |
| void MainMenuController::draw | ( | BITMAP * | ) | [virtual] |
This function will also be called each screen refresh to draw to the buffer.
Implements GameController.
| int MainMenuController::getExitCode | ( | ) | [inline, virtual] |
This function can be used when the GameController can end in multiple ways.
Reimplemented from GameController.
| bool MainMenuController::isComplete | ( | ) | [inline, virtual] |
| void MainMenuController::setComplete | ( | ) | [inline] |
| void MainMenuController::setExitCode | ( | int | exitCode | ) | [inline] |
| void MainMenuController::step | ( | ) | [virtual] |
WaveSound* MainMenuController::ButtonSample [private] |
The sound the buttons make.
bool MainMenuController::complete [private] |
int MainMenuController::exitCode [private] |
This will be set to a MainMenuExit code based on what button is clicked.
Button * MainMenuController::LoadGame [private] |
Button* MainMenuController::NewGame [private] |
The buttons on the screen.
Button * MainMenuController::QuitGame [private] |
1.5.7.1