ScummVM API documentation
Sherlock::Scalpel::ScalpelSaveManager Class Reference
Inheritance diagram for Sherlock::Scalpel::ScalpelSaveManager:
Sherlock::SaveManager

Public Member Functions

 ScalpelSaveManager (SherlockEngine *vm, const Common::String &target)
 
void drawInterface ()
 
int getHighlightedButton () const
 
void highlightButtons (int btnIndex)
 
bool checkGameOnScreen (int slot)
 
bool promptForDescription (int slot)
 
int identifyUserButton (int key)
 
- Public Member Functions inherited from Sherlock::SaveManager
 SaveManager (SherlockEngine *vm, const Common::String &target)
 
void createThumbnail ()
 
Common::String generateSaveName (int slot)
 
void writeSavegameHeader (Common::OutSaveFile *out, SherlockSavegameHeader &header)
 
int getHighlightedButton () const
 
void highlightButtons (int btnIndex)
 
void loadGame (int slot)
 
void saveGame (int slot, const Common::String &name)
 
bool isSlotEmpty (int slot) const
 

Public Attributes

SaveMode _envMode
 
Common::String _fixedTextExit
 
Common::String _fixedTextLoad
 
Common::String _fixedTextSave
 
Common::String _fixedTextUp
 
Common::String _fixedTextDown
 
Common::String _fixedTextQuit
 
byte _hotkeyExit
 
byte _hotkeyLoad
 
byte _hotkeySave
 
byte _hotkeyUp
 
byte _hotkeyDown
 
byte _hotkeyQuit
 
byte _hotkeysIndexed [6]
 
Common::String _fixedTextQuitGameQuestion
 
Common::String _fixedTextQuitGameYes
 
Common::String _fixedTextQuitGameNo
 
byte _hotkeyQuitGameYes
 
byte _hotkeyQuitGameNo
 
- Public Attributes inherited from Sherlock::SaveManager
Common::StringArray _savegames
 
int _savegameIndex
 
bool _justLoaded
 

Additional Inherited Members

- Static Public Member Functions inherited from Sherlock::SaveManager
static SaveManagerinit (SherlockEngine *vm, const Common::String &target)
 
static SaveStateList getSavegameList (const MetaEngine *metaEngine, const Common::String &target)
 
static WARN_UNUSED_RESULT bool readSavegameHeader (Common::InSaveFile *in, SherlockSavegameHeader &header, bool skipThumbnail=true)
 
- Protected Member Functions inherited from Sherlock::SaveManager
void createSavegameList ()
 
void synchronize (Serializer &s)
 
- Protected Attributes inherited from Sherlock::SaveManager
SherlockEngine_vm
 
Common::String _target
 
Graphics::Surface_saveThumb
 

Member Function Documentation

◆ drawInterface()

void Sherlock::Scalpel::ScalpelSaveManager::drawInterface ( )

Shows the in-game dialog interface for loading and saving games

◆ getHighlightedButton()

int Sherlock::Scalpel::ScalpelSaveManager::getHighlightedButton ( ) const

Return the index of the button the mouse is over, if any

◆ highlightButtons()

void Sherlock::Scalpel::ScalpelSaveManager::highlightButtons ( int  btnIndex)

Handle highlighting buttons

◆ checkGameOnScreen()

bool Sherlock::Scalpel::ScalpelSaveManager::checkGameOnScreen ( int  slot)

Make sure that the selected savegame is on-screen

◆ promptForDescription()

bool Sherlock::Scalpel::ScalpelSaveManager::promptForDescription ( int  slot)

Prompts the user to enter a description in a given slot

◆ identifyUserButton()

int Sherlock::Scalpel::ScalpelSaveManager::identifyUserButton ( int  key)

Identifies a button number according to the key, that the user pressed


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