Public Member Functions | |
| void | queueEffect (const Common::Array< byte > &samples) |
| void | queueTone (int divisor, uint32 lengthMs) |
| void | queueSilence (uint32 lengthMs) |
| void | playErrorBeep () |
| void | playSoundEffect (byte effect, byte arg1=0, byte arg2=0) |
| Ultima3Engine (OSystem *syst, const Ultima::UltimaGameDescription *gameDesc) | |
| uint32 | getFeatures () const |
| Common::String | getGameId () const |
| bool | hasFeature (EngineFeature f) const override |
| bool | canSaveGameStateCurrently (Common::U32String *msg=nullptr) override |
| bool | canLoadGameStateCurrently (Common::U32String *msg=nullptr) override |
| Common::Error | syncGame (Common::Serializer &s) |
| Common::Error | saveGameStream (Common::WriteStream *stream, bool=false) override |
| Common::Error | loadGameStream (Common::SeekableReadStream *stream) override |
| bool | savegamesExist () const |
| const char * | gameViewName () const |
| Graphics::Font * | createFont () const override |
Public Member Functions inherited from Engine | |
| virtual void | showHotspots (bool show) |
| void | suspendHotspots () |
| bool | isShowingHotspots () const |
| virtual HotspotKeyMode | hotspotsKeyMode () const |
| HotspotKeyMode | effectiveHotspotKeyMode () const |
| 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 | 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) const |
| virtual void | syncSoundSettings () |
| 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 Member Functions inherited from Ultima::Shared::Events | |
| Events (const Common::String &engineName) | |
Public Member Functions inherited from Graphics::Views::Events | |
| Events (const Common::String &engineName, uint frameRate=20) | |
| uint | getFrameRate () const |
| void | runGame () |
| bool | pumpEvents () |
| int | getRandomNumber (int minNumber, int maxNumber) |
| int | getRandomNumber (int maxNumber) |
| void | replaceView (UIElement *ui, bool replaceAllViews=false) override |
| void | replaceView (const Common::String &name, bool replaceAllViews=false) override |
| void | addView (UIElement *ui) override |
| void | addView (const Common::String &name) override |
| void | clearViews () |
| void | popView () |
| UIElement * | focusedView () const |
| UIElement * | priorView () const |
| UIElement * | baseView () const |
| bool | isPresent (const Common::String &name) const |
| Graphics::Screen * | getScreen () const |
| void | drawElements () override |
| void | draw () override |
| bool | tick () override |
| void | close () override |
| void | updateScreen () |
| virtual Graphics::Font * | createFont () const |
Public Member Functions inherited from Graphics::Views::UIElement | |
| UIElement (const Common::String &name, UIElement *uiParent) | |
| UIElement (const Common::String &name) | |
| bool | needsRedraw () const |
| void | redraw () |
| virtual void | close () |
| virtual void | replaceView (UIElement *ui, bool replaceAllViews=false) |
| virtual void | replaceView (const Common::String &name, bool replaceAllViews=false) |
| virtual void | addView (UIElement *ui) |
| virtual void | addView (const Common::String &name) |
| void | addView () |
| void | open () |
| int | getRandomNumber (int minNumber, int maxNumber) |
| int | getRandomNumber (int maxNumber) |
| virtual void | setBounds (const Common::Rect &r) |
| Common::Rect | getBounds () const |
| const Common::String & | getName () const |
| GfxSurface | getSurface (bool innerBounds=false) const |
| virtual void | draw () |
| virtual bool | tick () |
| virtual UIElement * | findView (const Common::String &name) |
| bool | send (const MouseMoveMessage &msg) |
| bool | send (const Common::String &viewName, const FocusMessage &msg) |
| bool | send (const FocusMessage &msg) |
| bool | send (const Common::String &viewName, const UnfocusMessage &msg) |
| bool | send (const UnfocusMessage &msg) |
| bool | send (const Common::String &viewName, const MouseEnterMessage &msg) |
| bool | send (const MouseEnterMessage &msg) |
| bool | send (const Common::String &viewName, const MouseLeaveMessage &msg) |
| bool | send (const MouseLeaveMessage &msg) |
| bool | send (const Common::String &viewName, const KeypressMessage &msg) |
| bool | send (const KeypressMessage &msg) |
| bool | send (const Common::String &viewName, const MouseDownMessage &msg) |
| bool | send (const MouseDownMessage &msg) |
| bool | send (const Common::String &viewName, const MouseUpMessage &msg) |
| bool | send (const MouseUpMessage &msg) |
| bool | send (const Common::String &viewName, const ActionMessage &msg) |
| bool | send (const ActionMessage &msg) |
| bool | send (const Common::String &viewName, const GameMessage &msg) |
| bool | send (const GameMessage &msg) |
| bool | send (const Common::String &viewName, const ValueMessage &msg) |
| bool | send (const ValueMessage &msg) |
| template<class T > | |
| bool | send (const T &msg) |
| template<class T > | |
| bool | send (const Common::String &viewName, const T &msg) |
Public Attributes | |
| Data::Savegame | _savegame |
| Data::Map | _map |
| Data::Map | _worldMap |
| Data::Dungeon | _dungeon |
| CombatLogic | _combat |
| Gfx::Shapes | _shapes |
| Gfx::MessageLog | _messages |
| Gfx::Overview | _overview |
| Gfx::ScreenEffects | _effects |
| byte | _windDirection = 0 |
| byte | _holdTime = 0 |
| byte | _scene [Data::ARENA_SIZE *Data::ARENA_SIZE] = {} |
| bool | _sceneShown = false |
| bool | _moreMonsters = false |
| bool | _lessHunger = false |
| bool | _moonIcons = true |
| bool | _timedSounds = false |
| Music | _music |
| Data::RenderMode | _renderMode = Data::RENDER_CGA |
| bool | _soundEnabled = true |
| bool | _resumeGame = false |
| bool | _intangible = false |
Public Attributes inherited from Engine | |
| OSystem * | _system |
| Audio::Mixer * | _mixer |
Protected Member Functions | |
| Common::Error | run () override |
| void | applyGameSettings () override |
| bool | shouldQuit () const override |
| void | returnToMainMenu () override |
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 Graphics::HotspotRenderer * | createHotspotRenderer () |
| virtual bool | hideCursorForHotspots () const |
| virtual bool | hotspotDirty () const |
Protected Member Functions inherited from Ultima::Shared::Events | |
| bool | msgAction (const Graphics::Views::ActionMessage &msg) override |
| virtual void | returnToMainMenu () |
Protected Member Functions inherited from Graphics::Views::Events | |
| virtual bool | shouldQuit () const =0 |
| bool | msgAction (const ActionMessage &e) override |
| bool | msgFocus (const FocusMessage &e) override |
| bool | msgUnfocus (const UnfocusMessage &e) override |
| bool | msgMouseEnter (const MouseEnterMessage &e) override |
| bool | msgMouseLeave (const MouseLeaveMessage &e) override |
| bool | msgKeypress (const KeypressMessage &e) override |
| bool | msgMouseDown (const MouseDownMessage &e) override |
| bool | msgMouseUp (const MouseUpMessage &e) override |
| bool | msgMouseMove (const MouseMoveMessage &e) override |
| bool | msgCustom (const Message &msg) override |
Protected Member Functions inherited from Graphics::Views::UIElement | |
| void | delaySeconds (uint seconds) |
| void | delayFrames (uint frames) |
| bool | isDelayActive () const |
| void | cancelDelay () |
| virtual void | timeout () |
| virtual bool | msgMouseMove (const MouseMoveMessage &msg) |
| void | stopTextToSpeech () |
| virtual bool | msgFocus (const FocusMessage &e) |
| virtual bool | msgUnfocus (const UnfocusMessage &e) |
| virtual bool | msgMouseEnter (const MouseEnterMessage &e) |
| virtual bool | msgMouseLeave (const MouseLeaveMessage &e) |
| virtual bool | msgKeypress (const KeypressMessage &e) |
| virtual bool | msgMouseDown (const MouseDownMessage &e) |
| virtual bool | msgMouseUp (const MouseUpMessage &e) |
| virtual bool | msgAction (const ActionMessage &e) |
| virtual bool | msgGame (const GameMessage &e) |
| virtual bool | msgValue (const ValueMessage &e) |
| virtual bool | msgCustom (const Message &msg) |
|
overrideprotectedvirtual |
Initialize the engine and start its main loop.
Implements Engine.
|
overrideprotectedvirtual |
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.
|
inlineoverrideprotectedvirtual |
Returns true if the game should quit
Implements Graphics::Views::Events.
|
overrideprotectedvirtual |
Goes back to the title screen
Reimplemented from Ultima::Shared::Events.
| void Ultima::Ultima3::Ultima3Engine::queueEffect | ( | const Common::Array< byte > & | samples | ) |
Queues up the samples of a sound effect to be played
| void Ultima::Ultima3::Ultima3Engine::queueTone | ( | int | divisor, |
| uint32 | lengthMs | ||
| ) |
Queues a single square-wave note. divisor is the original's PIT timer divisor (frequency = ~1193182/divisor), matching how each original sound is specified
| void Ultima::Ultima3::Ultima3Engine::queueSilence | ( | uint32 | lengthMs | ) |
Queues a moment of silence
| void Ultima::Ultima3::Ultima3Engine::playErrorBeep | ( | ) |
Plays the short low buzz used to reject invalid input
| void Ultima::Ultima3::Ultima3Engine::playSoundEffect | ( | byte | effect, |
| byte | arg1 = 0, |
||
| byte | arg2 = 0 |
||
| ) |
Plays one of the game's sound effects, identified by its original number. Some effects are varied by values from where they're played
| Common::String Ultima::Ultima3::Ultima3Engine::getGameId | ( | ) | const |
Returns the game Id
|
inlineoverridevirtual |
Determine whether the engine supports the specified feature.
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 |
Indicate whether a game state can be loaded.
| msg | Optional pointer to message explaining why it is disabled |
Reimplemented from Engine.
| Common::Error Ultima::Ultima3::Ultima3Engine::syncGame | ( | Common::Serializer & | s | ) |
Uses a serializer to allow implementing savegame loading and saving using a single method
|
inlineoverridevirtual |
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.
|
inlineoverridevirtual |
Load a game state.
| stream | The stream to load the save state from. |
Reimplemented from Engine.
| bool Ultima::Ultima3::Ultima3Engine::savegamesExist | ( | ) | const |
Returns true if any savegames exist
|
inline |
Returns the name of the view for the place the party is in
|
overridevirtual |
Returns a font object that GfxSurface instances can use
Reimplemented from Graphics::Views::Events.