Public Member Functions | |
XeenEngine (OSystem *syst, const MM::MightAndMagicGameDescription *gameDesc) | |
uint32 | getSpecificGameId () const |
uint32 | getGameFeatures () const |
int | getRandomNumber (int maxNumber) |
int | getRandomNumber (int minNumber, int maxNumber) |
bool | shouldExit () const |
bool | isLoadPending () const |
Common::Error | loadGameState (int slot) override |
Common::Error | saveGameState (int slot, const Common::String &desc, bool isAutosave=false) override |
void | syncSoundSettings () override |
bool | canLoadGameStateCurrently (Common::U32String *msg=nullptr) override |
bool | canSaveGameStateCurrently (Common::U32String *msg=nullptr) override |
bool | canSaveAutosaveCurrently () override |
virtual void | showCutscene (const Common::String &name, int status, uint score) |
virtual void | dream ()=0 |
void | saveSettings () |
void | GUIError (const Common::U32String &msg) |
void | sayText (const Common::String &text, Common::TextToSpeechManager::Action action=Common::TextToSpeechManager::QUEUE_NO_REPEAT) const |
void | stopTextToSpeech () const |
Common::U32String | convertSpanishText (const Common::String &text) const |
![]() | |
MMEngine (OSystem *syst, const MM::MightAndMagicGameDescription *gameDesc) | |
bool | hasFeature (EngineFeature f) const override |
uint32 | getFeatures () const |
Common::Language | getLanguage () const |
Common::Platform | getPlatform () const |
uint32 | getGameID () const |
bool | getIsCD () const |
uint | getRandomNumber (int max) |
![]() | |
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 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) |
virtual void | applyGameSettings () |
virtual void | flipMute () |
virtual Common::String | getSaveStateName (int slot) const |
virtual Common::Error | loadGameStream (Common::SeekableReadStream *stream) |
void | setGameToLoadSlot (int slot) |
virtual Common::Error | saveGameStream (Common::WriteStream *stream, bool isAutosave=false) |
bool | saveGameDialog () |
bool | loadGameDialog () |
Static Public Member Functions | |
static Common::String | printMil (uint value) |
static Common::String | printK (uint value) |
static Common::String | printK2 (uint value) |
![]() | |
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) |
Public Attributes | |
Combat * | _combat |
Debugger * | _debugger |
EventsManager * | _events |
FileManager * | _files |
Interface * | _interface |
LocationManager * | _locations |
Map * | _map |
Party * | _party |
Patcher * | _patcher |
Resources * | _resources |
SavesManager * | _saves |
Screen * | _screen |
Scripts * | _scripts |
Sound * | _sound |
Spells * | _spells |
Windows * | _windows |
Mode | _mode |
GameMode | _gameMode |
bool | _noDirectionSense |
bool | _startupWindowActive |
uint | _endingScore |
bool | _gameWon [3] |
uint | _finalScore |
ExtendedOptions | _extOptions |
bool | _mouseMoved |
TTSLanguage | _ttsLanguage |
Common::CodePage | _ttsTextEncoding |
CCArchive * | _xeenCc = nullptr |
CCArchive * | _darkCc = nullptr |
CCArchive * | _introCc = nullptr |
SaveArchive * | _xeenSave = nullptr |
SaveArchive * | _darkSave = nullptr |
BaseCCArchive * | _currentArchive = nullptr |
SaveArchive * | _currentSave = nullptr |
![]() | |
OSystem * | _system |
Audio::Mixer * | _mixer |
Protected Member Functions | |
virtual void | showStartup ()=0 |
virtual void | showMainMenu ()=0 |
virtual void | playGame () |
virtual void | death ()=0 |
![]() | |
virtual int | runDialog (GUI::Dialog &dialog) |
void | defaultSyncSoundSettings () |
virtual void | pauseEngineIntern (bool pause) |
Protected Attributes | |
int | _loadSaveSlot |
![]() | |
const MightAndMagicGameDescription * | _gameDescription |
Common::RandomSource | _randomSource |
![]() | |
Common::TimerManager * | _timer |
Common::EventManager * | _eventMan |
Common::SaveFileManager * | _saveFileMan |
GUI::Dialog * | _mainMenuDialog |
const Common::String | _targetName |
int32 | _activeEnhancements = kEnhGameBreakingBugFixes |
Additional Inherited Members | |
![]() | |
enum | EngineFeature { kSupportsSubtitleOptions, kSupportsReturnToLauncher, kSupportsLoadingDuringRuntime, kSupportsSavingDuringRuntime, kSupportsChangingOptionsDuringRuntime, kSupportsArbitraryResolutions, kSupportsHelp, kSupportsQuitDialogOverride } |
|
protectedpure virtual |
Show the starting sequence/intro
Implemented in MM::Xeen::SwordsOfXeen::SwordsOfXeenEngine, and MM::Xeen::WorldOfXeen::WorldOfXeenEngine.
|
protectedpure virtual |
Show the startup menu
Implemented in MM::Xeen::SwordsOfXeen::SwordsOfXeenEngine, and MM::Xeen::WorldOfXeen::WorldOfXeenEngine.
|
protectedvirtual |
Play the game
|
protectedpure virtual |
Death cutscene
Implemented in MM::Xeen::SwordsOfXeen::SwordsOfXeenEngine, and MM::Xeen::WorldOfXeen::WorldOfXeenEngine.
uint32 MM::Xeen::XeenEngine::getSpecificGameId | ( | ) | const |
Returns the game Id, but with a reuslt of Clouds or Dark Side for World of Xeen, depending on which side the player is currently on
uint32 MM::Xeen::XeenEngine::getGameFeatures | ( | ) | const |
Returns the game features
int MM::Xeen::XeenEngine::getRandomNumber | ( | int | maxNumber | ) |
Returns a random number
int MM::Xeen::XeenEngine::getRandomNumber | ( | int | minNumber, |
int | maxNumber | ||
) |
Returns a random number
|
inline |
Returns true if the game should be exited (either quitting, exiting to the main menu, or loading a savegame)
|
inline |
Returns true if a savegame load is pending
|
overridevirtual |
Load a savegame
Reimplemented from Engine.
|
overridevirtual |
Save the game
Reimplemented from Engine.
|
overridevirtual |
Updates sound settings
Reimplemented from Engine.
|
overridevirtual |
Returns true if a savegame can currently be loaded
Reimplemented from Engine.
|
overridevirtual |
Returns true if the game can currently be saved
Reimplemented from Engine.
|
overridevirtual |
Returns true if an autosave can be created
Reimplemented from Engine.
|
inlinevirtual |
Show a cutscene
name | Name of cutscene |
status | For World of Xeen, Goober status |
score | Final score |
Reimplemented in MM::Xeen::SwordsOfXeen::SwordsOfXeenEngine, and MM::Xeen::WorldOfXeen::WorldOfXeenEngine.
|
pure virtual |
Dream sequence
Implemented in MM::Xeen::SwordsOfXeen::SwordsOfXeenEngine, and MM::Xeen::WorldOfXeen::WorldOfXeenEngine.
void MM::Xeen::XeenEngine::saveSettings | ( | ) |
Saves engine settings
void MM::Xeen::XeenEngine::GUIError | ( | const Common::U32String & | msg | ) |
Show an error message in a GUI dialog
void MM::Xeen::XeenEngine::sayText | ( | const Common::String & | text, |
Common::TextToSpeechManager::Action | action = Common::TextToSpeechManager::QUEUE_NO_REPEAT |
||
) | const |
Voice text with the text-to-speech system
void MM::Xeen::XeenEngine::stopTextToSpeech | ( | ) | const |
Stop the text-to-speech system's speech
Common::U32String MM::Xeen::XeenEngine::convertSpanishText | ( | const Common::String & | text | ) | const |
Convert text to a custom encoding for Spanish text
text | Text to convert |