MainController Class Reference
[Metagame]

#include <MainController.h>

Inherits GameController, and KeyboardListener.

Collaboration diagram for MainController:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 MainController (GameInfo *gameState)
virtual ~MainController ()
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.
GameInfogetGameInfo ()
void processKeyboardEvent (KeyboardEvent *e)
PriorityEnum priority ()
 MainController always wants to know what's going on, so it cheats its priority.
void setMenu (std::string title, Graphic *display, int buttons)

Private Attributes

GameInfoGameState
StageControllerCurrentStage
MenuControllerCurrentMenu
GameControllerEndAnimation
bool readyToQuit


Constructor & Destructor Documentation

MainController::MainController ( GameInfo gameState  ) 

MainController::~MainController (  )  [virtual]


Member Function Documentation

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

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

Implements GameController.

GameInfo * MainController::getGameInfo (  ) 

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

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

Implements GameController.

PriorityEnum MainController::priority (  )  [virtual]

MainController always wants to know what's going on, so it cheats its priority.

Reimplemented from KeyboardListener.

void MainController::processKeyboardEvent ( KeyboardEvent e  )  [virtual]

Implements KeyboardListener.

void MainController::setMenu ( std::string  title,
Graphic display,
int  buttons 
)

void MainController::step (  )  [virtual]

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

Implements GameController.


Member Data Documentation


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