mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-18 13:12:50 +00:00
48 lines
1006 B
C++
48 lines
1006 B
C++
#ifndef GAME_MWSTATE_STATEMANAGER_H
|
|
#define GAME_MWSTATE_STATEMANAGER_H
|
|
|
|
namespace MWBase
|
|
{
|
|
/// \brief Interface for game state manager (implemented in MWState)
|
|
class StateManager
|
|
{
|
|
public:
|
|
|
|
enum State
|
|
{
|
|
State_NoGame,
|
|
State_Ended,
|
|
State_Running
|
|
};
|
|
|
|
private:
|
|
|
|
StateManager (const StateManager&);
|
|
///< not implemented
|
|
|
|
StateManager& operator= (const StateManager&);
|
|
///< not implemented
|
|
|
|
public:
|
|
|
|
StateManager() {}
|
|
|
|
virtual ~StateManager() {}
|
|
|
|
virtual void requestQuit() = 0;
|
|
|
|
virtual bool hasQuitRequest() const = 0;
|
|
|
|
virtual State getState() const = 0;
|
|
|
|
virtual void newGame (bool bypass = false) = 0;
|
|
///< Start a new game.
|
|
///
|
|
/// \param bypass Skip new game mechanics.
|
|
|
|
virtual void endGame() = 0;
|
|
};
|
|
}
|
|
|
|
#endif
|