ScummVM API documentation
Xeen::XeenEngine Class Referenceabstract
Inheritance diagram for Xeen::XeenEngine:
Engine Xeen::SwordsOfXeen::SwordsOfXeenEngine Xeen::WorldOfXeen::WorldOfXeenEngine

Public Member Functions

 XeenEngine (OSystem *syst, const XeenGameDescription *gameDesc)
 
uint32 getFeatures () const
 
Common::Language getLanguage () const
 
Common::Platform getPlatform () const
 
uint32 getGameID () const
 
uint32 getSpecificGameId () const
 
uint32 getGameFeatures () const
 
bool getIsCD () 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 () override
 
bool canSaveGameStateCurrently () 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)
 
- Public Member Functions inherited from Engine
MetaEnginegetMetaEngine () const
 
void setMetaEngine (MetaEngine *metaEngine)
 
PauseToken pauseEngine ()
 
bool isPaused () const
 
void openMainMenuDialog ()
 
uint32 getTotalPlayTime () const
 
void setTotalPlayTime (uint32 time=0)
 
Common::TimerManagergetTimerManager ()
 
Common::EventManagergetEventManager ()
 
Common::SaveFileManagergetSaveFileManager ()
 
bool existExtractedCDAudioFiles (uint track=1)
 
bool isDataAndCDAudioReadFromSameCD ()
 
void warnMissingExtractedCDAudio ()
 
void handleAutoSave ()
 
void saveAutosaveIfEnabled ()
 
virtual int getAutosaveSlot () 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::DebuggergetDebugger () final
 
void setDebugger (GUI::Debugger *debugger)
 
GUI::DebuggergetOrCreateDebugger ()
 
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 Public Member Functions inherited from Engine
static void quitGame ()
 
static bool shouldQuit ()
 
static MetaEngineDetectiongetMetaEngineDetection ()
 
static bool warnUserAboutUnsupportedGame (Common::String msg=Common::String())
 
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
 
- Public Attributes inherited from Engine
OSystem_system
 
Audio::Mixer_mixer
 

Protected Member Functions

virtual void showStartup ()=0
 
virtual void showMainMenu ()=0
 
virtual void playGame ()
 
virtual void death ()=0
 
- Protected Member Functions inherited from Engine
virtual int runDialog (GUI::Dialog &dialog)
 
virtual void pauseEngineIntern (bool pause)
 

Protected Attributes

int _loadSaveSlot
 
- Protected Attributes inherited from Engine
Common::TimerManager_timer
 
Common::EventManager_eventMan
 
Common::SaveFileManager_saveFileMan
 
GUI::Dialog_mainMenuDialog
 
const Common::String _targetName
 

Additional Inherited Members

- Public Types inherited from Engine
enum  EngineFeature {
  kSupportsSubtitleOptions, kSupportsReturnToLauncher, kSupportsLoadingDuringRuntime, kSupportsSavingDuringRuntime,
  kSupportsChangingOptionsDuringRuntime, kSupportsArbitraryResolutions, kSupportsHelp
}
 

Member Function Documentation

◆ showStartup()

virtual void Xeen::XeenEngine::showStartup ( )
protectedpure virtual

Show the starting sequence/intro

Implemented in Xeen::SwordsOfXeen::SwordsOfXeenEngine, and Xeen::WorldOfXeen::WorldOfXeenEngine.

◆ showMainMenu()

virtual void Xeen::XeenEngine::showMainMenu ( )
protectedpure virtual

◆ playGame()

virtual void Xeen::XeenEngine::playGame ( )
protectedvirtual

Play the game

◆ death()

virtual void Xeen::XeenEngine::death ( )
protectedpure virtual

◆ getFeatures()

uint32 Xeen::XeenEngine::getFeatures ( ) const

Returns the features

◆ getLanguage()

Common::Language Xeen::XeenEngine::getLanguage ( ) const

Returns the game language

◆ getPlatform()

Common::Platform Xeen::XeenEngine::getPlatform ( ) const

Returns the game's platform

◆ getGameID()

uint32 Xeen::XeenEngine::getGameID ( ) const

Gets the game Id

◆ getSpecificGameId()

uint32 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

◆ getGameFeatures()

uint32 Xeen::XeenEngine::getGameFeatures ( ) const

Returns the game features

◆ getIsCD()

bool Xeen::XeenEngine::getIsCD ( ) const

Returns true if the game is the CD version

◆ getRandomNumber() [1/2]

int Xeen::XeenEngine::getRandomNumber ( int  maxNumber)

Returns a random number

◆ getRandomNumber() [2/2]

int Xeen::XeenEngine::getRandomNumber ( int  minNumber,
int  maxNumber 
)

Returns a random number

◆ shouldExit()

bool Xeen::XeenEngine::shouldExit ( ) const
inline

Returns true if the game should be exited (either quitting, exiting to the main menu, or loading a savegame)

◆ isLoadPending()

bool Xeen::XeenEngine::isLoadPending ( ) const
inline

Returns true if a savegame load is pending

◆ loadGameState()

Common::Error Xeen::XeenEngine::loadGameState ( int  slot)
overridevirtual

Load a savegame

Reimplemented from Engine.

◆ saveGameState()

Common::Error Xeen::XeenEngine::saveGameState ( int  slot,
const Common::String desc,
bool  isAutosave = false 
)
overridevirtual

Save the game

Reimplemented from Engine.

◆ syncSoundSettings()

void Xeen::XeenEngine::syncSoundSettings ( )
overridevirtual

Updates sound settings

Reimplemented from Engine.

◆ canLoadGameStateCurrently()

bool Xeen::XeenEngine::canLoadGameStateCurrently ( )
overridevirtual

Returns true if a savegame can currently be loaded

Reimplemented from Engine.

◆ canSaveGameStateCurrently()

bool Xeen::XeenEngine::canSaveGameStateCurrently ( )
overridevirtual

Returns true if the game can currently be saved

Reimplemented from Engine.

◆ canSaveAutosaveCurrently()

bool Xeen::XeenEngine::canSaveAutosaveCurrently ( )
overridevirtual

Returns true if an autosave can be created

Reimplemented from Engine.

◆ showCutscene()

virtual void Xeen::XeenEngine::showCutscene ( const Common::String name,
int  status,
uint  score 
)
inlinevirtual

Show a cutscene

Parameters
nameName of cutscene
statusFor World of Xeen, Goober status
scoreFinal score

Reimplemented in Xeen::SwordsOfXeen::SwordsOfXeenEngine, and Xeen::WorldOfXeen::WorldOfXeenEngine.

◆ dream()

virtual void Xeen::XeenEngine::dream ( )
pure virtual

◆ saveSettings()

void Xeen::XeenEngine::saveSettings ( )

Saves engine settings

◆ GUIError()

void Xeen::XeenEngine::GUIError ( const Common::U32String msg)

Show an error message in a GUI dialog


The documentation for this class was generated from the following file: