ScummVM API documentation
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 Xeen::SavesManager::readSavegameHeader ( Common::InSaveFile in,
XeenSavegameHeader header,
bool  skipThumbnail = true 
)
static

Read in a savegame header

◆ writeSavegameHeader()

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

Write out a savegame header

◆ loadGameState()

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

Load a savegame

◆ saveGameState()

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

Save the game

◆ doAutosave()

void Xeen::SavesManager::doAutosave ( )

Does an autosave

◆ newGame()

void Xeen::SavesManager::newGame ( )

Sets up a new game

◆ loadGame()

bool Xeen::SavesManager::loadGame ( )

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

Returns
True if a savegame was loaded

◆ saveGame()

bool 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: