MainMenuController Class Reference
[Main menu]

This class handles rendering and updating the Start Menu. More...

#include <MainMenuController.h>

Inherits GameController.

Collaboration diagram for MainMenuController:

Collaboration graph
[legend]

List of all members.

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
ButtonNewGame
 The buttons on the screen.
ButtonLoadGame
ButtonQuitGame
WaveSoundButtonSample
 The sound the buttons make.
int exitCode
 This will be set to a MainMenuExit code based on what button is clicked.


Detailed Description

This class handles rendering and updating the Start Menu.

Constructor & Destructor Documentation

MainMenuController::MainMenuController (  ) 

MainMenuController::~MainMenuController (  )  [virtual]


Member Function Documentation

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]

This function can be called to check if the GameController is done.

Implements GameController.

void MainMenuController::setComplete (  )  [inline]

void MainMenuController::setExitCode ( int  exitCode  )  [inline]

void MainMenuController::step (  )  [virtual]

This function will be called each time unit of the game.

Implements GameController.


Member Data Documentation

The sound the buttons make.

This will be set to a MainMenuExit code based on what button is clicked.

The buttons on the screen.


The documentation for this class was generated from the following files:

Generated on Mon Mar 16 14:33:12 2009 for LearningGaming by  doxygen 1.5.7.1