Orxonox  0.0.5 Codename: Arcturus
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
orxonox::GSLevel Class Reference

#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/orxonox/gamestates/GSLevel.h>

Inheritance diagram for orxonox::GSLevel:
orxonox::GameState

Public Member Functions

 GSLevel (const GameStateInfo &info)
 
 ~GSLevel ()
 
virtual void activate () override
 
virtual void deactivate () override
 
void reloadLevel ()
 
virtual void update (const Clock &time) override
 
- Public Member Functions inherited from orxonox::GameState
 GameState (const GameStateInfo &info)
 Constructor only initialises variables and sets the name permanently. More...
 
virtual ~GameState ()
 Destructor only checks that we don't delete an active state. More...
 
State getActivity () const
 
const GameStateInfogetInfo () const
 
const std::string & getName () const
 

Static Public Member Functions

static void changeGame (const std::string &level)
 Terminates the current game and starts a new game. More...
 
static void startMainMenu (void)
 Starts the MainMenu. More...
 

Private Member Functions

void loadLevel ()
 
void performObjectTracking ()
 
void prepareObjectTracking ()
 
void unloadLevel ()
 
void unloadLevelAsClient ()
 Unloads a level when the game instance is (or was) a client in a multiplayer session. More...
 

Private Attributes

bool bShowIngameGUI_
 
InputStategameInputState_
 input state for normal ingame playing More...
 
InputStateguiKeysOnlyInputState_
 input state if we only need the keys to use the GUI More...
 
InputStateguiMouseOnlyInputState_
 input state if we only need the mouse to use the GUI More...
 
XMLFilestartFile_
 
std::set< BaseObject * > staticObjects_
 

Additional Inherited Members

Constructor & Destructor Documentation

orxonox::GSLevel::GSLevel ( const GameStateInfo info)
orxonox::GSLevel::~GSLevel ( )

Member Function Documentation

void orxonox::GSLevel::activate ( )
overridevirtual

Reimplemented from orxonox::GameState.

void orxonox::GSLevel::changeGame ( const std::string &  level)
static

Terminates the current game and starts a new game.

Parameters
levelThe filename of the level to be started.
void orxonox::GSLevel::deactivate ( )
overridevirtual

Reimplemented from orxonox::GameState.

void orxonox::GSLevel::loadLevel ( )
private
void orxonox::GSLevel::performObjectTracking ( )
private
void orxonox::GSLevel::prepareObjectTracking ( )
private
void orxonox::GSLevel::reloadLevel ( )
void orxonox::GSLevel::startMainMenu ( void  )
static

Starts the MainMenu.

void orxonox::GSLevel::unloadLevel ( )
private
void orxonox::GSLevel::unloadLevelAsClient ( )
private

Unloads a level when the game instance is (or was) a client in a multiplayer session.

In this case, cleanup after unloading a level is done differently because certain things (e.g. the xml file) are unknown.

void orxonox::GSLevel::update ( const Clock time)
overridevirtual

Reimplemented from orxonox::GameState.

Member Data Documentation

bool orxonox::GSLevel::bShowIngameGUI_
private
InputState* orxonox::GSLevel::gameInputState_
private

input state for normal ingame playing

InputState* orxonox::GSLevel::guiKeysOnlyInputState_
private

input state if we only need the keys to use the GUI

InputState* orxonox::GSLevel::guiMouseOnlyInputState_
private

input state if we only need the mouse to use the GUI

XMLFile* orxonox::GSLevel::startFile_
private
std::set<BaseObject*> orxonox::GSLevel::staticObjects_
private

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