ScummVM API documentation
MM::Xeen::SavesManager Class Reference

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
 

Member Function Documentation

◆ readSavegameHeader()

static WARN_UNUSED_RESULT bool MM::Xeen::SavesManager::readSavegameHeader ( Common::InSaveFile in,
XeenSavegameHeader header,
bool  skipThumbnail = true 
)
static

Read in a savegame header

◆ writeSavegameHeader()

void MM::Xeen::SavesManager::writeSavegameHeader ( Common::OutSaveFile out,
XeenSavegameHeader header 
)

Write out a savegame header

◆ loadGameState()

Common::Error MM::Xeen::SavesManager::loadGameState ( int  slot)

Load a savegame

◆ saveGameState()

Common::Error MM::Xeen::SavesManager::saveGameState ( int  slot,
const Common::String desc,
bool  isAutosave = false 
)

Save the game

◆ doAutosave()

void MM::Xeen::SavesManager::doAutosave ( )

Does an autosave

◆ newGame()

void MM::Xeen::SavesManager::newGame ( )

Sets up a new game

◆ loadGame()

bool MM::Xeen::SavesManager::loadGame ( )

Shows the load game dialog, and lets the user load a game

Returns
True if a savegame was loaded

◆ saveGame()

bool MM::Xeen::SavesManager::saveGame ( )

Shows the save game dialog, and lets the user save their game

Returns
True if a savegame was saved

The documentation for this class was generated from the following file: