Public Member Functions | |
| Ultima8Engine (OSystem *syst, const Ultima::UltimaGameDescription *gameDesc) | |
| void | initializePath (const Common::FSNode &gamePath) override |
| bool | hasFeature (EngineFeature f) const override |
| Common::Language | getLanguage () const |
| bool | setupGame () |
| Common::Error | startupGame () |
| void | changeVideoMode (int width, int height) |
| const GameInfo * | getGameInfo () const |
| Get current GameInfo struct. | |
| RenderSurface * | getRenderScreen () |
| Graphics::Screen * | getScreen () const |
| Common::Error | runGame () |
| virtual void | handleEvent (const Common::Event &event) |
| void | handleActionDown (KeybindingAction action) |
| void | handleActionUp (KeybindingAction action) |
| void | paint () |
| INTRINSIC (I_getCurrentTimerTick) | |
| INTRINSIC (I_setAvatarInStasis) | |
| INTRINSIC (I_getAvatarInStasis) | |
| INTRINSIC (I_getTimeInGameHours) | |
| INTRINSIC (I_getTimeInMinutes) | |
| INTRINSIC (I_getTimeInSeconds) | |
| INTRINSIC (I_setTimeInGameHours) | |
| INTRINSIC (I_avatarCanCheat) | |
| INTRINSIC (I_getCrusaderTeleporting) | |
| INTRINSIC (I_setCrusaderTeleporting) | |
| INTRINSIC (I_clrCrusaderTeleporting) | |
| INTRINSIC (I_makeAvatarACheater) | |
| INTRINSIC (I_closeItemGumps) | |
| INTRINSIC (I_setCruStasis) | |
| INTRINSIC (I_clrCruStasis) | |
| INTRINSIC (I_moveKeyDownRecently) | |
| void | setAvatarInStasis (bool stat) |
| bool | isAvatarInStasis () const |
| bool | isAvatarControlled () const |
| bool | isShowEditorItems () const |
| void | setShowEditorItems (bool flag) |
| bool | isShowTouchingItems () const |
| void | setShowTouchingItems (bool flag) |
| bool | isHackMoverEnabled () const |
| void | setHackMoverEnabled (bool flag) |
| bool | isCrusaderTeleporting () const |
| void | setCrusaderTeleporting (bool flag) |
| void | setCruStasis (bool flag) |
| bool | isCruStasis () const |
| void | moveKeyEvent () |
| bool | moveKeyDownRecently () |
| uint32 | getGameTimeInSeconds () |
| GameMapGump * | getGameMapGump () |
| Gump * | getDesktopGump () |
| Gump * | getGump (uint16 gumpid) |
| void | addGump (Gump *gump) |
| AvatarMoverProcess * | getAvatarMoverProcess () |
| Common::RandomSource & | getRandomSource () |
| void | syncSoundSettings () override |
| void | applyGameSettings () override |
| void | openConfigDialog () |
| 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::Error | loadGameStream (Common::SeekableReadStream *stream) override |
| Common::Error | saveGameStream (Common::WriteStream *stream, bool isAutosave) override |
| bool | newGame (int saveSlot=-1) |
| void | setError (Common::Error &error) |
| unsigned int | getInversion () const |
| void | setInversion (unsigned int i) |
| bool | isInverted () |
| bool | areCheatsEnabled () const |
| void | setCheatMode (bool enabled) |
| bool | hasCheated () const |
| void | makeCheater () |
| bool | isInterpolationEnabled () const |
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 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 | flipMute () |
| virtual Common::String | getSaveStateName (int slot) const |
| void | setGameToLoadSlot (int slot) |
| bool | saveGameDialog () |
| bool | loadGameDialog () |
Static Public Member Functions | |
| static Ultima8Engine * | get_instance () |
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) |
Protected Member Functions | |
| Common::Error | run () override |
| Common::Error | initialize () |
| void | deinitialize () |
| void | pauseEngineIntern (bool pause) 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 } |
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 |
|
overrideprotectedvirtual |
Initialize the engine and start its main loop.
Implements Engine.
|
overrideprotectedvirtual |
Actual implementation of pauseEngine by subclasses.
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.
|
overridevirtual |
Determine whether the engine supports the specified feature.
Reimplemented from Engine.
| void Ultima::Ultima8::Ultima8Engine::addGump | ( | Gump * | gump | ) |
add a gump to the right core gump (such as desktopgump)
| gump | the gump to be added |
|
overridevirtual |
Notifies the engine that the sound settings may have changed
Reimplemented from Engine.
|
overridevirtual |
Notifies the engine that the game settings may have changed
Reimplemented from Engine.
| void Ultima::Ultima8::Ultima8Engine::openConfigDialog | ( | ) |
Opens the config dialog and apply setting after close
|
inlineoverridevirtual |
Returns true if a savegame can be loaded
Reimplemented from Engine.
|
overridevirtual |
Returns true if the game can be saved
Reimplemented from Engine.
|
overridevirtual |
Load a game
Reimplemented from Engine.
|
overridevirtual |
Saves the game
Reimplemented from Engine.
|
overridevirtual |
Load a game state
Reimplemented from Engine.
|
overridevirtual |
Handles saving savegame state to a stream
Reimplemented from Engine.
| bool Ultima::Ultima8::Ultima8Engine::newGame | ( | int | saveSlot = -1 | ) |
start a new game
| void Ultima::Ultima8::Ultima8Engine::setError | ( | Common::Error & | error | ) |
Sets an error to end the engine run loop
| error | The error to return from the engine |