Interface for game state manager (implemented in MWState)
More...
#include <statemanager.hpp>
Interface for game state manager (implemented in MWState)
Enumerator |
---|
State_NoGame |
|
State_Ended |
|
State_Running |
|
MWBase::StateManager::StateManager |
( |
| ) |
|
|
inline |
virtual MWBase::StateManager::~StateManager |
( |
| ) |
|
|
inlinevirtual |
virtual void MWBase::StateManager::askLoadRecent |
( |
| ) |
|
|
pure virtual |
Any call to SaveGame and getCurrentCharacter can invalidate the returned iterator.
Implemented in MWState::StateManager.
virtual void MWBase::StateManager::endGame |
( |
| ) |
|
|
pure virtual |
virtual State MWBase::StateManager::getState |
( |
| ) |
const |
|
pure virtual |
virtual bool MWBase::StateManager::hasQuitRequest |
( |
| ) |
const |
|
pure virtual |
virtual void MWBase::StateManager::loadGame |
( |
const std::string & |
filepath | ) |
|
|
pure virtual |
Load a saved game directly from the given file path. This will search the CharacterManager for a Character containing this save file, and set this Character current if one was found. Otherwise, a new Character will be created.
Implemented in MWState::StateManager.
virtual void MWBase::StateManager::loadGame |
( |
const MWState::Character * |
character, |
|
|
const std::string & |
filepath |
|
) |
| |
|
pure virtual |
virtual void MWBase::StateManager::newGame |
( |
bool |
bypass = false | ) |
|
|
pure virtual |
virtual void MWBase::StateManager::quickLoad |
( |
| ) |
|
|
pure virtual |
virtual void MWBase::StateManager::quickSave |
( |
std::string |
= "Quicksave" | ) |
|
|
pure virtual |
Simple saver, writes over the file if already existing.
Used for quick save and autosave
Implemented in MWState::StateManager.
virtual void MWBase::StateManager::requestQuit |
( |
| ) |
|
|
pure virtual |
virtual void MWBase::StateManager::saveGame |
( |
const std::string & |
description, |
|
|
const MWState::Slot * |
slot = 0 |
|
) |
| |
|
pure virtual |
Write a saved game to slot or create a new slot if slot == 0.
- Note
- Slot must belong to the current character.
Implemented in MWState::StateManager.
virtual void MWBase::StateManager::update |
( |
float |
duration | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: