Public Member Functions | |
Saga2Engine (OSystem *syst, const SAGA2GameDescription *desc) | |
Common::Error | run () override |
bool | hasFeature (EngineFeature f) const override |
const ADGameFileDescription * | getFilesDescriptions () const |
int | getGameId () const |
bool | canLoadGameStateCurrently (Common::U32String *msg=nullptr) override |
bool | canSaveGameStateCurrently (Common::U32String *msg=nullptr) override |
Common::Error | loadGameStream (Common::SeekableReadStream *stream) override |
Common::Error | saveGameStream (Common::WriteStream *stream, bool isAutosave=false) override |
Common::Error | saveGameState (int slot, const Common::String &desc, bool isAutosave) override |
Common::Error | loadGameState (int slot) override |
void | syncSoundSettings () override |
Common::String | getSavegameFile (int num) |
void | syncGameStream (Common::Serializer &s) |
void | loadExeResources () |
void | freeExeResources () |
void | startVideo (const char *fileName, int x, int y) |
bool | checkVideo () |
void | endVideo () |
void | abortVideo () |
void | readConfig () |
void | saveConfig () |
Public Member Functions inherited from Engine | |
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 bool | canSaveAutosaveCurrently () |
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::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 |
void | setGameToLoadSlot (int slot) |
bool | saveGameDialog () |
bool | loadGameDialog () |
Public Attributes | |
Common::RandomSource * | _rnd |
Console * | _console |
Renderer * | _renderer |
AudioInterface * | _audio |
PaletteManager * | _pal |
ActorManager * | _act |
CalendarTime * | _calendar |
TileModeManager * | _tmm |
ContainerManager * | _cnm |
WeaponStuff | _weaponRack [kMaxWeapons] |
weaponID | _loadedWeapons |
Common::Array< char * > | _nameList |
Common::Array< PlayerActor * > | _playerList |
Common::Array< ProtoObj * > | _objectProtos |
Common::Array< ActorProto * > | _actorProtos |
Common::Array< CMapFeature * > | _mapFeatures |
Common::List< TimerList * > | _timerLists |
Common::List< Timer * > | _timers |
Common::List< ActorAppearance * > | _appearanceLRU |
Common::List< PathRequest * > | _pathQueue |
Common::List< SensorList * > | _sensorListList |
Common::List< Sensor * > | _sensorList |
Common::List< CMassWeightIndicator * > | _indList |
Common::List< int > | _platformLRU |
BandList * | _bandList |
MotionTaskList * | _mTaskList |
CImageCache * | _imageCache |
GrabInfo * | _mouseInfo |
EffectDisplayPrototypeList * | _edpList |
SpellDisplayPrototypeList * | _sdpList |
DisplayNodeList * | _mainDisplayList |
SpellDisplayList * | _activeSpells |
gMousePointer * | _pointer |
ActiveRegion * | _activeRegionList |
gToolBase * | _toolBase |
Properties * | _properties |
HandleArray * | _tileImageBanks |
TileActivityTaskList * | _aTaskList |
TaskStackList * | _stackList |
TaskList * | _taskList |
Deejay * | _grandMasterFTA |
frameSmoother * | _frate |
frameCounter * | _lrate |
gDisplayPort | _mainPort |
gPort | _backPort |
gPixelMap | _tileDrawMap |
bool | _gameRunning |
bool | _autoAggression |
bool | _autoWeapon |
bool | _showNight |
bool | _speechText |
bool | _speechVoice |
bool | _teleportOnClick |
bool | _teleportOnMap |
bool | _showPosition |
bool | _showStats |
bool | _showStatusMsg |
bool | _indivControlsFlag |
bool | _userControlsSetup |
int | _fadeDepth |
int | _currentMapNum |
Public Attributes inherited from Engine | |
OSystem * | _system |
Audio::Mixer * | _mixer |
Additional Inherited Members | |
Public Types inherited from Engine | |
enum | EngineFeature { kSupportsSubtitleOptions, kSupportsReturnToLauncher, kSupportsLoadingDuringRuntime, kSupportsSavingDuringRuntime, kSupportsChangingOptionsDuringRuntime, kSupportsArbitraryResolutions, kSupportsHelp, kSupportsQuitDialogOverride } |
Static Public Member Functions inherited from Engine | |
static void | quitGame () |
static bool | shouldQuit () |
static bool | warnUserAboutUnsupportedGame (Common::String msg=Common::String()) |
static void | errorUnsupportedGame (Common::String extraMsg) |
Protected Member Functions inherited from Engine | |
virtual int | runDialog (GUI::Dialog &dialog) |
void | defaultSyncSoundSettings () |
virtual void | pauseEngineIntern (bool pause) |
Protected Attributes inherited from Engine | |
Common::TimerManager * | _timer |
Common::EventManager * | _eventMan |
Common::SaveFileManager * | _saveFileMan |
GUI::Dialog * | _mainMenuDialog |
const Common::String | _targetName |
int32 | _activeEnhancements = kEnhGameBreakingBugFixes |
|
overridevirtual |
Initialize the engine and start its main loop.
Implements Engine.
|
overridevirtual |
Determine whether the engine supports the specified feature.
Reimplemented from Engine.
|
inlineoverridevirtual |
Indicate whether a game state can be loaded.
msg | Optional pointer to message explaining why it is disabled |
Reimplemented from Engine.
|
inlineoverridevirtual |
Indicate whether a game state can be saved.
msg | Optional pointer to message explaining why it is disabled |
Reimplemented from Engine.
|
overridevirtual |
Load a game state.
stream | The stream to load the save state from. |
Reimplemented from Engine.
|
overridevirtual |
Save a game state.
stream | The write stream to save the savegame data to. |
isAutosave | Expected to be true if an autosave is being created. |
Reimplemented from Engine.
|
overridevirtual |
Save a game state.
slot | The slot into which the save state should be stored. |
desc | Description for the save state, entered by the user. |
isAutosave | Expected to be true if an autosave is being created. |
Reimplemented from Engine.
|
overridevirtual |
Load a game state.
slot | The slot from which a save state should be loaded. |
Reimplemented from Engine.
|
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).
Reimplemented from Engine.