◆ run()
Initialize the engine and start its main loop.
- Returns
- kNoError on success, otherwise an error code.
Implements Engine.
◆ isDataRequired()
bool Ultima::Ultima4::Ultima4Engine::isDataRequired |
( |
Common::Path & |
folder, |
|
|
int & |
majorVersion, |
|
|
int & |
minorVersion |
|
) |
| |
|
protected |
Returns the data archive folder and version that's required
◆ hasFeature()
bool Ultima::Ultima4::Ultima4Engine::hasFeature |
( |
EngineFeature |
f | ) |
const |
|
overridevirtual |
Returns supported engine features
Reimplemented from Engine.
◆ isEnhanced()
bool Ultima::Ultima4::Ultima4Engine::isEnhanced |
( |
| ) |
const |
Returns true if the game is running an enhanced version as compared to the original game
◆ getRandomNumber()
uint Ultima::Ultima4::Ultima4Engine::getRandomNumber |
( |
uint |
maxVal | ) |
|
|
inline |
◆ canLoadGameStateCurrently()
bool Ultima::Ultima4::Ultima4Engine::canLoadGameStateCurrently |
( |
Common::U32String * |
msg = nullptr | ) |
|
|
overridevirtual |
Returns true if a savegame can be loaded
Reimplemented from Engine.
◆ canSaveGameStateCurrently()
bool Ultima::Ultima4::Ultima4Engine::canSaveGameStateCurrently |
( |
Common::U32String * |
msg = nullptr | ) |
|
|
overridevirtual |
Returns true if the game can be saved
Reimplemented from Engine.
◆ saveGameState()
Save a game state.
- Parameters
-
slot | the slot into which the savestate should be stored |
desc | a description for the savestate, entered by the user |
isAutosave | Expected to be true if an autosave is being created |
- Returns
- returns kNoError on success, else an error code.
Reimplemented from Engine.
◆ loadGameStream()
Load a game state.
- Parameters
-
stream | the stream to load the savestate from |
- Returns
- returns kNoError on success, else 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
- returns kNoError on success, else an error code.
Reimplemented from Engine.
◆ setToJourneyOnwards()
void Ultima::Ultima4::Ultima4Engine::setToJourneyOnwards |
( |
| ) |
|
Specifies to load the previous save as the actual game starts. Used by the main menu when the Journey Onwards option is selected
◆ quitGame()
void Ultima::Ultima4::Ultima4Engine::quitGame |
( |
| ) |
|
The documentation for this class was generated from the following file: