|
| enum | RunawayAction {
kScrollLeft
, kScrollRight
, kScrollStart
, kScrollEnd
,
kCancelAction
, kSkip
, kToggleInventory
, kCycleAction
,
kPauseMenu
} |
| |
| enum | EngineFeature {
kSupportsSubtitleOptions
, kSupportsReturnToLauncher
, kSupportsLoadingDuringRuntime
, kSupportsSavingDuringRuntime
,
kSupportsChangingOptionsDuringRuntime
, kSupportsArbitraryResolutions
, kSupportsHelp
, kSupportsQuitDialogOverride
} |
| |
◆ run()
Initialize the engine and start its main loop.
- Returns
- kNoError on success, otherwise an error code.
Implements Engine.
◆ initializePath()
| void Hollywood::RunawayEngine::initializePath |
( |
const Common::FSNode & |
gamePath | ) |
|
|
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.
- Parameters
-
| gamePath | The base directory of the game data. |
Reimplemented from Engine.
◆ hasFeature()
| bool Hollywood::RunawayEngine::hasFeature |
( |
EngineFeature |
f | ) |
const |
|
overridevirtual |
Determine whether the engine supports the specified feature.
Reimplemented from Engine.
◆ syncSoundSettings()
| void Hollywood::RunawayEngine::syncSoundSettings |
( |
| ) |
|
|
overridevirtual |
Notify the engine that the sound settings in the config manager might have changed and that it should adjust any internal volume (and other) values accordingly.
The default implementation sets the volume levels of all mixer sound types according to the config entries of the active domain. When overwriting, call the default implementation first, then adjust the volumes further (if required).
- Note
- When setting volume levels, respect the "mute" config entry.
-
The volume for the plain sound type is reset to the maximum volume. If the engine can associate its own value for this type, it needs to overwrite this member and set it accordingly.
Reimplemented from Engine.
◆ canLoadGameStateCurrently()
| bool Hollywood::RunawayEngine::canLoadGameStateCurrently |
( |
Common::U32String * |
msg = nullptr | ) |
|
|
overridevirtual |
Indicate whether a game state can be loaded.
- Parameters
-
| msg | Optional pointer to message explaining why it is disabled |
Reimplemented from Engine.
◆ canSaveGameStateCurrently()
| bool Hollywood::RunawayEngine::canSaveGameStateCurrently |
( |
Common::U32String * |
msg = nullptr | ) |
|
|
overridevirtual |
Indicate whether a game state can be saved.
- Parameters
-
| msg | Optional pointer to message explaining why it is disabled |
Reimplemented from Engine.
◆ loadGameStream()
Load a game state.
- Parameters
-
| stream | The stream to load the save state from. |
- Returns
- kNoError on success, otherwise an error code.
Reimplemented from Engine.
◆ saveGameStream()
Save a game state.
- Parameters
-
| stream | The write stream to save the savegame data to. |
| isAutosave | Expected to be true if an autosave is being created. |
- Returns
- kNoError on success, otherwise an error code.
Reimplemented from Engine.
◆ getHotspotPositions()
Get information about all hotspots that should be displayed.
Engines should override this method to populate the hotspots array with hotspot information in game screen coordinates.
- Parameters
-
| hotspots | Array to be filled with hotspot information |
Reimplemented from Engine.
◆ createHotspotRenderer()
◆ hideCursorForHotspots()
| bool Hollywood::RunawayEngine::hideCursorForHotspots |
( |
| ) |
const |
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: