ScummVM API documentation
Mohawk::MohawkEngine_Riven Class Reference
Inheritance diagram for Mohawk::MohawkEngine_Riven:
Mohawk::MohawkEngine Engine

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 ()
 
RivenStackconstructStackById (uint16 id)
 
void changeToCard (uint16 dest)
 
void changeToStack (uint16 stackId)
 
void reloadCurrentCard ()
 
RivenCardgetCard () const
 
RivenStackgetStack () 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::SeekableReadStreamgetExtrasResource (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::SeekableReadStreamgetResource (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
MetaEnginegetMetaEngine () const
 
void setMetaEngine (MetaEngine *metaEngine)
 
PauseToken pauseEngine ()
 
bool isPaused () const
 
void openMainMenuDialog ()
 
uint32 getTotalPlayTime () const
 
void setTotalPlayTime (uint32 time=0)
 
Common::TimerManagergetTimerManager ()
 
Common::EventManagergetEventManager ()
 
Common::SaveFileManagergetSaveFileManager ()
 
bool existExtractedCDAudioFiles (uint track=1)
 
bool isDataAndCDAudioReadFromSameCD ()
 
void warnMissingExtractedCDAudio ()
 
void handleAutoSave ()
 
void saveAutosaveIfEnabled ()
 
virtual int getAutosaveSlot () 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::DebuggergetDebugger () final
 
void setDebugger (GUI::Debugger *debugger)
 
GUI::DebuggergetOrCreateDebugger ()
 
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 RivenLanguagegetLanguageDesc (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 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
 

Member Function Documentation

◆ run()

Common::Error Mohawk::MohawkEngine_Riven::run ( )
overrideprotectedvirtual

Initialize the engine and start its main loop.

Returns
kNoError on success, otherwise an error code.

Reimplemented from Mohawk::MohawkEngine.

◆ canLoadGameStateCurrently()

bool Mohawk::MohawkEngine_Riven::canLoadGameStateCurrently ( Common::U32String msg = nullptr)
overridevirtual

Indicate whether a game state can be loaded.

Parameters
msgOptional pointer to message explaining why it is disabled

Reimplemented from Engine.

◆ canSaveGameStateCurrently()

bool Mohawk::MohawkEngine_Riven::canSaveGameStateCurrently ( Common::U32String msg = nullptr)
overridevirtual

Indicate whether a game state can be saved.

Parameters
msgOptional pointer to message explaining why it is disabled

Reimplemented from Engine.

◆ loadGameState()

Common::Error Mohawk::MohawkEngine_Riven::loadGameState ( int  slot)
overridevirtual

Load a game state.

Parameters
slotThe slot from which a save state should be loaded.
Returns
kNoError on success, otherwise an error code.

Reimplemented from Engine.

◆ saveGameState()

Common::Error Mohawk::MohawkEngine_Riven::saveGameState ( int  slot,
const Common::String desc,
bool  isAutosave = false 
)
overridevirtual

Save a game state.

Parameters
slotThe slot into which the save state should be stored.
descDescription for the save state, entered by the user.
isAutosaveExpected to be true if an autosave is being created.
Returns
kNoError on success, otherwise an error code.

Reimplemented from Engine.

◆ getSaveStateName()

Common::String Mohawk::MohawkEngine_Riven::getSaveStateName ( int  slot) const
inlineoverridevirtual

Generate the savegame filename.

Reimplemented from Engine.

◆ hasFeature()

bool Mohawk::MohawkEngine_Riven::hasFeature ( EngineFeature  f) const
overridevirtual

Determine whether the engine supports the specified feature.

Reimplemented from Mohawk::MohawkEngine.

◆ applyGameSettings()

void Mohawk::MohawkEngine_Riven::applyGameSettings ( )
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.

◆ canSaveAutosaveCurrently()

bool Mohawk::MohawkEngine_Riven::canSaveAutosaveCurrently ( )
overridevirtual

Indicate whether an autosave can currently be done.

Reimplemented from Engine.

◆ hasGameEnded()

bool Mohawk::MohawkEngine_Riven::hasGameEnded ( ) const

Has the game ended, or has the user requested to quit?

◆ setGameEnded()

void Mohawk::MohawkEngine_Riven::setGameEnded ( )

End the game gracefully


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