Public Member Functions | |
SavesManager (const Common::String &targetName) | |
void | writeSavegameHeader (Common::OutSaveFile *out, XeenSavegameHeader &header) |
Common::Error | loadGameState (int slot) |
Common::Error | saveGameState (int slot, const Common::String &desc, bool isAutosave=false) |
void | doAutosave () |
void | newGame () |
bool | loadGame () |
bool | saveGame () |
Static Public Member Functions | |
static WARN_UNUSED_RESULT bool | readSavegameHeader (Common::InSaveFile *in, XeenSavegameHeader &header, bool skipThumbnail=true) |
Public Attributes | |
bool | _wonWorld |
bool | _wonDarkSide |
|
static |
Read in a savegame header
void MM::Xeen::SavesManager::writeSavegameHeader | ( | Common::OutSaveFile * | out, |
XeenSavegameHeader & | header | ||
) |
Write out a savegame header
Common::Error MM::Xeen::SavesManager::loadGameState | ( | int | slot | ) |
Load a savegame
Common::Error MM::Xeen::SavesManager::saveGameState | ( | int | slot, |
const Common::String & | desc, | ||
bool | isAutosave = false |
||
) |
Save the game
void MM::Xeen::SavesManager::doAutosave | ( | ) |
Does an autosave
void MM::Xeen::SavesManager::newGame | ( | ) |
Sets up a new game
bool MM::Xeen::SavesManager::loadGame | ( | ) |
Shows the load game dialog, and lets the user load a game
bool MM::Xeen::SavesManager::saveGame | ( | ) |
Shows the save game dialog, and lets the user save their game