Public Member Functions | |
| MADSEngine (OSystem *syst, const MADSGameDescription *gameDesc) | |
| void | initializePath (const Common::FSNode &gamePath) override |
| uint32 | getFeatures () const |
| Common::Language | getLanguage () const |
| Common::Platform | getPlatform () const |
| uint16 | getVersion () const |
| uint32 | getGameID () const |
| uint32 | getGameFeatures () const |
| bool | isDemo () const |
| bool | isCDROM () const |
| void | readConfigFile () |
| int | getRandomNumber (int maxNumber) |
| int | getRandomNumber (int minNumber, int maxNumber) |
| Graphics::Screen * | getScreen () const |
| bool | hasPendingKey () |
| int | getKey () |
| void | flushKeys () |
| int | getMouseState (int &x, int &y) |
| uint32 | getMillis () |
| int | main_cheating_key (int mykey) const |
| int | main_normal_key (int mykey) const |
| virtual int | main_copy_verify () |
| bool | canLoadGameStateCurrently (Common::U32String *msg) override |
| bool | canSaveGameStateCurrently (Common::U32String *msg) override |
| Common::Error | saveGameStream (Common::WriteStream *stream, bool isAutosave) override |
| Common::Error | loadGameStream (Common::SeekableReadStream *stream) override |
| virtual void | syncRoom (Common::Serializer &s)=0 |
| SaveStateList | listSaves () const |
| virtual void | global_init_code ()=0 |
| virtual void | section_music (int section_num)=0 |
| virtual void | global_section_constructor ()=0 |
| virtual void | global_daemon_code ()=0 |
| virtual void | global_pre_parser_code ()=0 |
| virtual void | global_parser_code ()=0 |
| virtual void | global_error_code ()=0 |
| virtual void | global_room_init ()=0 |
| virtual void | global_sound_driver ()=0 |
| virtual void | global_game_main_loop () |
| virtual void | global_verb_filter () |
| virtual void | player_keep_walking () |
| void | playSpeech (Audio::AudioStream *stream) |
| void | stopSpeech () |
| bool | isSpeechPlaying () const |
| void | setTimerFunction (TimerFunction fn) |
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 Common::Error | run ()=0 |
| 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 | applyGameSettings () |
| virtual void | flipMute () |
| virtual Common::String | getSaveStateName (int slot) const |
| virtual Common::Error | loadGameState (int slot) |
| void | setGameToLoadSlot (int slot) |
| virtual Common::Error | saveGameState (int slot, const Common::String &desc, bool isAutosave=false) |
| bool | saveGameDialog () |
| bool | loadGameDialog () |
Public Attributes | |
| MADS::SoundManager * | _soundManager = nullptr |
| bool | _musicFlag = true |
| bool | _soundFlag = true |
| bool & | _speechFlag = speech_on |
Public Attributes inherited from Engine | |
| OSystem * | _system |
| Audio::Mixer * | _mixer |
Protected Member Functions | |
| bool | hasFeature (EngineFeature f) const override |
| void | pollEvents () |
| void | checkForTimerFunction () |
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 |
Protected Attributes | |
| const MADSGameDescription * | _gameDescription |
| Common::RandomSource | _randomSource |
| Graphics::Screen * | _screen = nullptr |
| Common::Stack< Common::KeyState > | _keyEvents |
| uint32 | _nextFrameTime = 0 |
| Common::Point | _mousePos |
| int | _mouseButtons = 0 |
| Audio::SoundHandle | _speechHandle |
| TimerFunction | _timerFunction = nullptr |
| uint32 | _nextTimerTime = 0 |
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 |
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) |
|
overrideprotectedvirtual |
Determine whether the engine supports the specified feature.
Reimplemented from Engine.
|
overridevirtual |
Initialize SearchMan according to the game path.
By default, this adds the directory in non-flat mode with a depth of 4 as priority 0 to SearchMan.
| gamePath | The base directory of the game data. |
Reimplemented from Engine.
| uint32 MADS::MADSEngine::getMillis | ( | ) |
Get the elapsed time in milliseconds
|
overridevirtual |
Indicate whether a game state can be loaded.
| msg | Optional pointer to message explaining why it is disabled |
Reimplemented from Engine.
|
inlineoverridevirtual |
Indicate whether a game state can be saved.
| msg | Optional pointer to message explaining why it is disabled |
Reimplemented from Engine.
|
overridevirtual |
Save a game state.
| stream | The write stream to save the savegame data to. |
| isAutosave | Expected to be true if an autosave is being created. |
Reimplemented from Engine.
|
overridevirtual |
|
inline |
Sets the timer function to call at 60Hz