SPACE::Core::cStateManager Class Reference

This class manages all the states. More...

#include <cStateManager.hpp>

Inheritance diagram for SPACE::Core::cStateManager:
SPACE::Core::TSingleton< cStateManager >

List of all members.

Public Member Functions

bool Push (void(*_pFunction)(ePurpose _Purpose))
bool Pop ()
bool Clear ()
bool Process ()

Detailed Description

This class manages all the states.

The statemanager is like a stack. You can "Push" a state into it and this state is going to be executed. You can process the function and "Pop" a state. Delete will be done like this: The last pushed state will be deleted.

See also:
SPACE::Core::sState
SPACE::Core::TSingleton

Member Function Documentation

bool cStateManager::Clear (  ) 

Deletes every state

Returns:
true => Everything was ok
false => Something failed
bool cStateManager::Pop (  ) 

Deletes the last added state

Returns:
true => Everything was ok
false => Something failed
bool cStateManager::Process (  ) 

Runs the states function. The purpose is "RUN_PURPOSE".

Returns:
true => Everything was ok
false => Something failed
bool cStateManager::Push ( void(*)(ePurpose _Purpose)  _pFunction  ) 

Puts a new sState into the "State Stack"

Parameters:
(*_pFunction) The function of the state
Returns:
true => Everything was ok
false => Something failed

The documentation for this class was generated from the following files:
Generated on Wed Apr 7 17:20:25 2010 for SPACE Engine by  doxygen 1.6.3