Public Member Functions | |
| PhantomEngine (OSystem *syst, const MADSGameDescription *gameDesc) | |
| Common::Error | run () override |
| void | syncRoom (Common::Serializer &s) override |
| void | global_init_code () override |
| void | section_music (int section_num) override |
| void | global_section_constructor () override |
| void | global_daemon_code () override |
| void | global_pre_parser_code () override |
| void | global_parser_code () override |
| void | global_error_code () override |
| void | global_room_init () override |
| void | global_sound_driver () override |
Public Member Functions inherited from MADS::MADSEngine | |
| 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 |
| SaveStateList | listSaves () const |
| 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 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 () |
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 MADS::MADSEngine | |
| 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 inherited from MADS::MADSEngine | |
| 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 inherited from MADS::MADSEngine | |
| 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 |
|
overridevirtual |
Initialize the engine and start its main loop.
Implements Engine.