Nimbus  0.2
A game... with arrows... which should be clouds
 All Classes Functions Variables Enumerations Enumerator
Nimbus::GameMode Class Reference

#include <GameMode.h>

Inheritance diagram for Nimbus::GameMode:
Collaboration diagram for Nimbus::GameMode:

Public Member Functions

virtual void initialize ()
 
virtual RunModerun (const Ogre::FrameEvent &evt)
 
virtual void pause ()
 
virtual void stop ()
 

Additional Inherited Members

- Public Attributes inherited from Nimbus::RunMode
Ogre::SceneManager * mSceneMgr
 

Detailed Description

RunMode that drives the game.

This RunMode contains the world object which contains all information about the game world (the environment and the entities). This RunMode is also responsible for the managers which run the game.

Member Function Documentation

void GameMode::initialize ( )
virtual

Sets up all necessary components of the run mode. Should be called before run begins.

Implements Nimbus::RunMode.

Here is the call graph for this function:

void GameMode::pause ( )
virtual

Pauses the execution of the run mode. Should be called when the run mode needs to take a break.

Implements Nimbus::RunMode.

Here is the call graph for this function:

RunMode * GameMode::run ( const Ogre::FrameEvent &  evt)
virtual

Updates all information in the run mode. Runs a single frame.

Parameters
evtAn Ogre::FrameEvent storing the amount of time since the last frame.
Returns
A pointer to the next RunMode which should be run. Will generally return itself until a RunMode change is necessary. If the program should exit, it will return a 0 (null).

Implements Nimbus::RunMode.

Here is the call graph for this function:

void GameMode::stop ( )
virtual

Stops the execution of the run mode. Should be called after the run completes.

Implements Nimbus::RunMode.

Here is the call graph for this function:


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