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

#include <RunMode.h>

Inheritance diagram for Nimbus::RunMode:

Public Member Functions

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

Public Attributes

Ogre::SceneManager * mSceneMgr
 

Detailed Description

Controls the operation of an application in a specific mode. Contains an optional initialization framework if relevant to the run mode.

Member Function Documentation

virtual void Nimbus::RunMode::initialize ( )
pure virtual

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

Implemented in Nimbus::GameMode.

Here is the caller graph for this function:

virtual void Nimbus::RunMode::pause ( )
pure virtual

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

Implemented in Nimbus::GameMode.

virtual RunMode* Nimbus::RunMode::run ( const Ogre::FrameEvent &  evt)
pure 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).

Implemented in Nimbus::GameMode.

virtual void Nimbus::RunMode::stop ( )
pure virtual

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

Implemented in Nimbus::GameMode.


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