◆ initializePath()
void Titanic::TitanicEngine::initializePath |
( |
const Common::FSNode & |
gamePath | ) |
|
|
overrideprotectedvirtual |
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.
◆ run()
Initialize the engine and start its main loop.
- Returns
- kNoError on success, otherwise an error code.
Implements Engine.
◆ hasFeature()
Determine whether the engine supports the specified feature.
Reimplemented from Engine.
◆ canLoadGameStateCurrently()
bool Titanic::TitanicEngine::canLoadGameStateCurrently |
( |
Common::U32String * |
msg = nullptr | ) |
|
|
overridevirtual |
Returns true if a savegame can be loaded
Reimplemented from Engine.
◆ canSaveGameStateCurrently()
bool Titanic::TitanicEngine::canSaveGameStateCurrently |
( |
Common::U32String * |
msg = nullptr | ) |
|
|
overridevirtual |
Returns true if the game can be saved
Reimplemented from Engine.
◆ loadGameState()
Called by the GMM to load a savegame
Reimplemented from Engine.
◆ saveGameState()
Called by the GMM to save the game
Reimplemented from Engine.
◆ syncSoundSettings()
void Titanic::TitanicEngine::syncSoundSettings |
( |
| ) |
|
|
overridevirtual |
Handles updates to the sound levels
Reimplemented from Engine.
◆ getFeatures()
uint32 Titanic::TitanicEngine::getFeatures |
( |
| ) |
const |
◆ getLanguage()
Returns the language for the game
◆ isGerman()
bool Titanic::TitanicEngine::isGerman |
( |
| ) |
const |
|
inline |
Returns true if it's the German version
◆ getRandomNumber()
uint Titanic::TitanicEngine::getRandomNumber |
( |
uint |
max | ) |
|
|
inline |
Returns a uniform random unsigned integer in the interval [0, max]
◆ getRandomFloat()
double Titanic::TitanicEngine::getRandomFloat |
( |
| ) |
|
|
inline |
Returns a uniform random floating point number in the interval [0.0, 65535.0]
◆ getSavegameName()
CString Titanic::TitanicEngine::getSavegameName |
( |
int |
slot | ) |
|
Checks whether a savegame exists for the given slot, and if it exists, returns it's description
The documentation for this class was generated from the following file: