CentralController Class Reference
[Main menu]

#include <CentralController.h>

Inherits GameController.

Collaboration diagram for CentralController:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CentralController ()
virtual ~CentralController ()
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.

Private Attributes

GameControllerCurrentController
bool readyToQuit
 True if the user hits the Quit button.
bool mainMenuMode
 True if the user is currently looking at the Start Menu.
bool animating
 True if the user is watching the intro animation.


Detailed Description

This class is the top level controller that is called by the main function. It switches between the Main Menu and an instance of the game. It will also switch to the intro animation if it is a new game.

Constructor & Destructor Documentation

CentralController::CentralController (  ) 

CentralController::~CentralController (  )  [virtual]


Member Function Documentation

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

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

Implements GameController.

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

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

Implements GameController.

void CentralController::step (  )  [virtual]

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

Implements GameController.


Member Data Documentation

True if the user is watching the intro animation.

True if the user is currently looking at the Start Menu.

True if the user hits the Quit button.


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

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