Public Member Functions | |
| MohawkEngine_Riven (OSystem *syst, const MohawkGameDescription *gamedesc) | |
| 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 |
| Common::String | getSaveStateName (int slot) const override |
| Common::Language | getLanguage () const override |
| bool | hasFeature (EngineFeature f) const override |
| void | applyGameSettings () override |
| bool | isInteractive () const |
| void | doFrame () |
| void | processInput () |
| RivenStack * | constructStackById (uint16 id) |
| void | changeToCard (uint16 dest) |
| void | changeToStack (uint16 stackId) |
| void | reloadCurrentCard () |
| RivenCard * | getCard () const |
| RivenStack * | getStack () const |
| void | addZipVisitedCard (uint16 cardId, uint16 cardNameId) |
| bool | isZipVisitedCard (const Common::String &hotspotName) const |
| uint32 & | getStackVar (uint32 index) |
| Common::Array< uint16 > | getResourceIDList (uint32 type) const |
| Common::SeekableReadStream * | getExtrasResource (uint32 tag, uint16 id) |
| void | delay (uint32 ms) |
| void | runOptionsDialog () |
| bool | canSaveAutosaveCurrently () override |
| bool | hasGameEnded () const |
| void | setGameEnded () |
| void | goToMainMenu () |
| void | resumeFromMainMenu () |
| bool | isInMainMenu () const |
| bool | isGameStarted () const |
| void | startNewGame () |
Public Member Functions inherited from Mohawk::MohawkEngine | |
| MohawkEngine (OSystem *syst, const MohawkGameDescription *gamedesc) | |
| const char * | getGameId () const |
| uint32 | getFeatures () const |
| bool | isGameVariant (MohawkGameFeatures feature) const |
| const char * | getAppName () const |
| Common::Platform | getPlatform () const |
| uint8 | getGameType () const |
| virtual Common::SeekableReadStream * | getResource (uint32 tag, uint16 id) |
| bool | hasResource (uint32 tag, uint16 id) |
| bool | hasResource (uint32 tag, const Common::String &resName) |
| uint32 | getResourceOffset (uint32 tag, uint16 id) |
| uint16 | findResourceID (uint32 type, const Common::String &resName) |
| Common::String | getResourceName (uint32 tag, uint16 id) |
| void | closeAllArchives () |
| void | pauseGame () |
Public Member Functions inherited from Engine | |
| 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 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) |
| virtual void | syncSoundSettings () |
| virtual void | flipMute () |
| 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 () |
Static Public Member Functions | |
| static const RivenLanguage * | getLanguageDesc (Common::Language language) |
| static Common::Array< Common::Keymap * > | initKeymaps (const char *target) |
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 | errorAddingAddOnWithoutBaseGame (Common::String addOnName, Common::String gameId) |
| static void | errorUnsupportedGame (Common::String extraMsg) |
Public Attributes | |
| RivenVideoManager * | _video |
| RivenSoundManager * | _sound |
| RivenGraphics * | _gfx |
| Common::RandomSource * | _rnd |
| RivenScriptManager * | _scriptMan |
| RivenInventory * | _inventory |
| bool | _showHotspots |
| Common::Array< ZipMode > | _zipModeData |
| RivenVariableMap | _vars |
| bool | _activatedPLST |
| bool | _activatedSLST |
Public Attributes inherited from Mohawk::MohawkEngine | |
| const MohawkGameDescription * | _gameDescription |
| CursorManager * | _cursor |
Public Attributes inherited from Engine | |
| OSystem * | _system |
| Audio::Mixer * | _mixer |
Protected Member Functions | |
| Common::Error | run () override |
Protected Member Functions inherited from Engine | |
| virtual int | runDialog (GUI::Dialog &dialog) |
| void | defaultSyncSoundSettings () |
Additional Inherited Members | |
Public Types inherited from Engine | |
| enum | EngineFeature { kSupportsSubtitleOptions, kSupportsReturnToLauncher, kSupportsLoadingDuringRuntime, kSupportsSavingDuringRuntime, kSupportsChangingOptionsDuringRuntime, kSupportsArbitraryResolutions, kSupportsHelp, kSupportsQuitDialogOverride } |
Protected Attributes inherited from Mohawk::MohawkEngine | |
| Common::Array< Archive * > | _mhk |
Protected Attributes inherited from Engine | |
| Common::TimerManager * | _timer |
| Common::EventManager * | _eventMan |
| Common::SaveFileManager * | _saveFileMan |
| GUI::Dialog * | _mainMenuDialog |
| const Common::String | _targetName |
| int32 | _activeEnhancements = kEnhGameBreakingBugFixes |
|
overrideprotectedvirtual |
Initialize the engine and start its main loop.
Reimplemented from Mohawk::MohawkEngine.
|
overridevirtual |
Indicate whether a game state can be loaded.
| msg | Optional pointer to message explaining why it is disabled |
Reimplemented from Engine.
|
overridevirtual |
Indicate whether a game state can be saved.
| msg | Optional pointer to message explaining why it is disabled |
Reimplemented from Engine.
|
overridevirtual |
Load a game state.
| slot | The slot from which a save state should be loaded. |
Reimplemented from Engine.
|
overridevirtual |
Save a game state.
| slot | The slot into which the save state should be stored. |
| desc | Description for the save state, entered by the user. |
| isAutosave | Expected to be true if an autosave is being created. |
Reimplemented from Engine.
|
inlineoverridevirtual |
Generate the savegame filename.
Reimplemented from Engine.
|
overridevirtual |
Determine whether the engine supports the specified feature.
Reimplemented from Mohawk::MohawkEngine.
|
overridevirtual |
Notify the engine that the settings editable from the Game tab in the in-game options dialog might have changed and that they need to be applied if necessary.
Reimplemented from Engine.
|
overridevirtual |
Indicate whether an autosave can currently be done.
Reimplemented from Engine.
| bool Mohawk::MohawkEngine_Riven::hasGameEnded | ( | ) | const |
Has the game ended, or has the user requested to quit?
| void Mohawk::MohawkEngine_Riven::setGameEnded | ( | ) |
End the game gracefully