ScummVM API documentation
Sherlock::Scalpel::ScalpelEngine Class Reference
Inheritance diagram for Sherlock::Scalpel::ScalpelEngine:
Sherlock::SherlockEngine Engine

Public Member Functions

 ScalpelEngine (OSystem *syst, const SherlockGameDescription *gameDesc)
 
void eraseBrumwellMirror ()
 
void doBrumwellMirror ()
 
void flushBrumwellMirror ()
 
void showScummVMSaveDialog ()
 
void showScummVMRestoreDialog ()
 
bool play3doMovie (const Common::Path &filename, const Common::Point &pos, bool isPortrait=false)
 
- Public Member Functions inherited from Sherlock::SherlockEngine
 SherlockEngine (OSystem *syst, const SherlockGameDescription *gameDesc)
 
Common::Error run () override
 
bool canLoadGameStateCurrently (Common::U32String *msg=nullptr) override
 
bool canSaveGameStateCurrently (Common::U32String *msg=nullptr) override
 
Common::Error loadGameState (int slot) override
 
Common::Error saveGameState (int slot, const Common::String &desc, bool isAutosave=false) override
 
void syncSoundSettings () override
 
virtual void saveConfig ()
 
virtual bool isDemo () const
 
GameType getGameID () const
 
Common::Platform getPlatform () const
 
Common::Language getLanguage () const
 
int getRandomNumber (int limit)
 
bool readFlags (int flagNum)
 
void setFlags (int flagNum)
 
void setFlagsDirect (int flagNum)
 
void synchronize (Serializer &s)
 
- Public Member Functions inherited from Engine
virtual void showHotspots (bool show)
 
MetaEngine * getMetaEngine () const
 
void setMetaEngine (MetaEngine *metaEngine)
 
PauseToken pauseEngine ()
 
bool isPaused () const
 
void openMainMenuDialog ()
 
uint32 getTotalPlayTime () const
 
void setTotalPlayTime (uint32 time=0)
 
Common::TimerManager * getTimerManager ()
 
Common::EventManager * getEventManager ()
 
Common::SaveFileManager * getSaveFileManager ()
 
bool existExtractedCDAudioFiles (uint track=1)
 
bool isDataAndCDAudioReadFromSameCD ()
 
void warnMissingExtractedCDAudio ()
 
void handleAutoSave ()
 
void saveAutosaveIfEnabled ()
 
virtual bool canSaveAutosaveCurrently ()
 
virtual int getAutosaveSlot () const
 
virtual bool gameTypeHasAddOns () const
 
virtual bool dirCanBeGameAddOn (const Common::FSDirectory &dir) const
 
virtual bool dirMustBeGameAddOn (const Common::FSDirectory &dir) const
 
Common::ErrorCode updateAddOns (const MetaEngine *metaEngine) const
 
 Engine (OSystem *syst)
 
virtual ~Engine ()
 
virtual void initializePath (const Common::FSNode &gamePath)
 
virtual void errorString (const char *buf_input, char *buf_output, int buf_output_size)
 
virtual GUI::Debugger * getDebugger () final
 
void setDebugger (GUI::Debugger *debugger)
 
GUI::Debugger * getOrCreateDebugger ()
 
bool enhancementEnabled (int32 cls) const
 
virtual void applyGameSettings ()
 
virtual void flipMute ()
 
virtual Common::String getSaveStateName (int slot) const
 
virtual Common::Error loadGameStream (Common::SeekableReadStream *stream)
 
void setGameToLoadSlot (int slot)
 
virtual Common::Error saveGameStream (Common::WriteStream *stream, bool isAutosave=false)
 
bool saveGameDialog ()
 
bool loadGameDialog ()
 

Protected Member Functions

void initialize () override
 
void showOpening () override
 
void startScene () override
 
- Protected Member Functions inherited from Sherlock::SherlockEngine
virtual void initialize ()
 
virtual void showOpening ()=0
 
virtual void startScene ()
 
bool hasFeature (EngineFeature f) const override
 
virtual void loadConfig ()
 
- Protected Member Functions inherited from Engine
virtual int runDialog (GUI::Dialog &dialog)
 
void defaultSyncSoundSettings ()
 
virtual void pauseEngineIntern (bool pause)
 
virtual void getHotspotPositions (Common::Array< Graphics::HotspotInfo > &hotspots)
 
virtual void drawHotspots ()
 
virtual bool hotspotDirty () const
 

Additional Inherited Members

- Public Types inherited from Engine
enum  EngineFeature {
  kSupportsSubtitleOptions , kSupportsReturnToLauncher , kSupportsLoadingDuringRuntime , kSupportsSavingDuringRuntime ,
  kSupportsChangingOptionsDuringRuntime , kSupportsArbitraryResolutions , kSupportsHelp , kSupportsQuitDialogOverride
}
 
- Static Public Member Functions inherited from Engine
static void quitGame ()
 
static bool shouldQuit ()
 
static bool warnUserAboutUnsupportedGame (Common::String msg=Common::String())
 
static bool warnUserAboutUnsupportedAddOn (Common::String addOnName)
 
static void warnUserAboutTestingMode ()
 
static void errorAddingAddOnWithoutBaseGame (Common::String addOnName, Common::String gameId)
 
static void errorUnsupportedGame (Common::String extraMsg)
 
- Public Attributes inherited from Sherlock::SherlockEngine
const SherlockGameDescription * _gameDescription
 
Animation * _animation
 
Debugger * _debugger
 
Events * _events
 
FixedText * _fixedText
 
Inventory * _inventory
 
Journal * _journal
 
Map * _map
 
Music * _music
 
People * _people
 
Resources * _res
 
SaveManager * _saves
 
Scene * _scene
 
Screen * _screen
 
Sound * _sound
 
Talk * _talk
 
UserInterface * _ui
 
Common::RandomSource _randomSource
 
Common::Array< bool > _flags
 
bool _useEpilogue2
 
int _loadGameSlot
 
bool _canLoadSave
 
bool _showOriginalSavesDialog
 
bool _interactiveFl
 
bool _isScreenDoubled
 
bool _startupAutosave
 
- Public Attributes inherited from Engine
OSystem * _system
 
Audio::Mixer * _mixer
 
- Protected Attributes inherited from Engine
Common::TimerManager * _timer
 
Common::EventManager * _eventMan
 
Common::SaveFileManager * _saveFileMan
 
GUI::Dialog * _mainMenuDialog
 
const Common::String _targetName
 
int32 _activeEnhancements = kEnhGameBreakingBugFixes
 
bool _showHotspots
 
bool _hotspotForceRedraw
 
bool _hotspotPrevCursorVisible
 

Member Function Documentation

◆ initialize()

void Sherlock::Scalpel::ScalpelEngine::initialize ( )
overrideprotectedvirtual

Game initialization

Reimplemented from Sherlock::SherlockEngine.

◆ showOpening()

void Sherlock::Scalpel::ScalpelEngine::showOpening ( )
overrideprotectedvirtual

Show the opening sequence

Implements Sherlock::SherlockEngine.

◆ startScene()

void Sherlock::Scalpel::ScalpelEngine::startScene ( )
overrideprotectedvirtual

Starting a scene within the game

Reimplemented from Sherlock::SherlockEngine.

◆ eraseBrumwellMirror()

void Sherlock::Scalpel::ScalpelEngine::eraseBrumwellMirror ( )

Takes care of clearing the mirror in scene 12 (mansion drawing room), in case anything drew over it

◆ doBrumwellMirror()

void Sherlock::Scalpel::ScalpelEngine::doBrumwellMirror ( )

Takes care of drawing Holme's reflection onto the mirror in scene 12 (mansion drawing room)

◆ flushBrumwellMirror()

void Sherlock::Scalpel::ScalpelEngine::flushBrumwellMirror ( )

This clears the mirror in scene 12 (mansion drawing room) in case anything messed draw over it

◆ showScummVMSaveDialog()

void Sherlock::Scalpel::ScalpelEngine::showScummVMSaveDialog ( )

Show the ScummVM restore savegame dialog

◆ showScummVMRestoreDialog()

void Sherlock::Scalpel::ScalpelEngine::showScummVMRestoreDialog ( )

Show the ScummVM restore savegame dialog

◆ play3doMovie()

bool Sherlock::Scalpel::ScalpelEngine::play3doMovie ( const Common::Path &  filename,
const Common::Point &  pos,
bool  isPortrait = false 
)

Play back a 3do movie


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