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 Xeen::SavesManager::writeSavegameHeader | ( | Common::OutSaveFile * | out, |
XeenSavegameHeader & | header | ||
) |
Write out a savegame header
Common::Error Xeen::SavesManager::loadGameState | ( | int | slot | ) |
Load a savegame
Common::Error Xeen::SavesManager::saveGameState | ( | int | slot, |
const Common::String & | desc, | ||
bool | isAutosave = false |
||
) |
Save the game
void Xeen::SavesManager::doAutosave | ( | ) |
Does an autosave
void Xeen::SavesManager::newGame | ( | ) |
Sets up a new game
bool Xeen::SavesManager::loadGame | ( | ) |
Shows the load game dialog, and lets the user load a game
bool Xeen::SavesManager::saveGame | ( | ) |
Shows the save game dialog, and lets the user save their game