#include <statemanagerimp.hpp>
MWState::StateManager::StateManager |
( |
const boost::filesystem::path & |
saves, |
|
|
const std::string & |
game |
|
) |
| |
void MWState::StateManager::askLoadRecent |
( |
| ) |
|
|
virtual |
std::map< int, int > MWState::StateManager::buildContentFileIndexMap |
( |
const ESM::ESMReader & |
reader | ) |
const |
|
private |
Any call to SaveGame and getCurrentCharacter can invalidate the returned iterator.
Implements MWBase::StateManager.
void MWState::StateManager::cleanup |
( |
bool |
force = false | ) |
|
|
private |
Delete a saved game slot from this character. If all save slots are deleted, the character will be deleted too.
Implements MWBase::StateManager.
void MWState::StateManager::endGame |
( |
| ) |
|
|
virtual |
bool MWState::StateManager::hasQuitRequest |
( |
| ) |
const |
|
virtual |
void MWState::StateManager::loadGame |
( |
const std::string & |
filepath | ) |
|
|
virtual |
void MWState::StateManager::loadGame |
( |
const Character * |
character, |
|
|
const std::string & |
filepath |
|
) |
| |
|
virtual |
void MWState::StateManager::newGame |
( |
bool |
bypass = false | ) |
|
|
virtual |
void MWState::StateManager::quickLoad |
( |
| ) |
|
|
virtual |
void MWState::StateManager::quickSave |
( |
std::string |
name = "Quicksave" | ) |
|
|
virtual |
Saves a file, using supplied filename, overwritting if needed.
This is mostly used for quicksaving and autosaving, for they use the same name over and over again
- Parameters
-
name | Name of save, defaults to "Quicksave" |
Implements MWBase::StateManager.
void MWState::StateManager::requestQuit |
( |
| ) |
|
|
virtual |
void MWState::StateManager::saveGame |
( |
const std::string & |
description, |
|
|
const Slot * |
slot = 0 |
|
) |
| |
|
virtual |
Write a saved game to slot or create a new slot if slot == 0.
- Note
- Slot must belong to the current character.
Implements MWBase::StateManager.
void MWState::StateManager::update |
( |
float |
duration | ) |
|
|
virtual |
void MWState::StateManager::writeScreenshot |
( |
std::vector< char > & |
imageData | ) |
const |
|
private |
bool MWState::StateManager::mAskLoadRecent |
|
private |
bool MWState::StateManager::mQuitRequest |
|
private |
State MWState::StateManager::mState |
|
private |
double MWState::StateManager::mTimePlayed |
|
private |
The documentation for this class was generated from the following files: