MenuController Class Reference
[Metagame]

#include <MenuController.h>

Inherits GameController, and ClickListener.

Collaboration diagram for MenuController:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 MenuController ()
virtual ~MenuController ()
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.
bool isComplete ()
 This function can be called to check if the GameController is done.
void onClick (MouseEvent *e)
void onClick (MouseEvent *e, void *caller)
void setTitle (std::string s)
void setButtons (int buttons)
void setDisplay (Graphic *g)

Protected Attributes

bool complete
ButtonQuitGame
TextQuitText
ButtonReturnToGame
TextReturnText
LayermenuLayer
Texttitle
Graphicdisplay


Constructor & Destructor Documentation

MenuController::MenuController (  ) 

MenuController::~MenuController (  )  [virtual]


Member Function Documentation

void MenuController::draw ( BITMAP *   )  [virtual]

This function will also be called each screen refresh to draw to the buffer.

Implements GameController.

bool MenuController::isComplete (  )  [inline, virtual]

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

Implements GameController.

void MenuController::onClick ( MouseEvent e,
void *  caller 
) [virtual]

Reimplemented from ClickListener.

void MenuController::onClick ( MouseEvent e  )  [inline, virtual]

Implements ClickListener.

void MenuController::setButtons ( int  buttons  ) 

void MenuController::setDisplay ( Graphic g  ) 

void MenuController::setTitle ( std::string  s  ) 

void MenuController::step (  )  [virtual]

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

Implements GameController.


Member Data Documentation

bool MenuController::complete [protected]


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

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