ScummVM API documentation
Mortevielle::MortevielleEngine Class Reference
Inheritance diagram for Mortevielle::MortevielleEngine:
Engine

Public Member Functions

 MortevielleEngine (OSystem *system, const MortevielleGameDescription *gameDesc)
 
bool hasFeature (EngineFeature f) const override
 
bool canLoadGameStateCurrently (Common::U32String *msg=nullptr) override
 
bool canSaveGameStateCurrently (Common::U32String *msg=nullptr) override
 
Common::Error loadGameState (int slot) override
 
Common::Error saveGameState (int slot, const Common::String &desc, bool isAutosave=false) override
 
Common::Error run () override
 
void pauseEngineIntern (bool pause) override
 
uint32 getGameFlags () const
 
Common::Language getLanguage () const
 
Common::Language getOriginalLanguage () const
 
bool useOriginalData () const
 
Common::String getSaveStateName (int slot) const override
 
int getChar ()
 
bool keyPressed ()
 
Common::Point getMousePos () const
 
void setMousePos (const Common::Point &pt)
 
bool getMouseClick () const
 
void setMouseClick (bool v)
 
Common::String getEngineString (int idx) const
 
Common::String getGameString (int idx) const
 
void delay (int amount)
 
void gameLoaded ()
 
void initGame ()
 
void displayAloneText ()
 
void displayInterScreenMessage (int mesgId)
 
void draw (int x, int y)
 
void charToHour ()
 
void hourToChar ()
 
Common::String getString (int num)
 
void setPal (int n)
 
Common::String copy (const Common::String &s, int idx, size_t size)
 
void testKeyboard ()
 
int getPresence (int roomId)
 
void displayEmptyHand ()
 
void displayPicture (const byte *pic, int x, int y)
 
int gettKeyPressed ()
 
void handleDescriptionText (int f, int mesgId)
 
int getAnimOffset (int frameNum, int animNum)
 
void clearScreen ()
 
- 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 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::DebuggergetDebugger () final
 
void setDebugger (GUI::Debugger *debugger)
 
GUI::DebuggergetOrCreateDebugger ()
 
bool enhancementEnabled (int32 cls)
 
virtual void syncSoundSettings ()
 
virtual void applyGameSettings ()
 
virtual void flipMute ()
 
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 generateSaveFilename (const Common::String &target, int slot)
 
- 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)
 

Public Attributes

Common::Point _prevPos
 
int _currMenu
 
int _currAction
 
int _drawingSizeArr [108]
 
int _charAnswerCount [9]
 
int _charAnswerMax [9]
 
byte _tabdon [4001]
 
bool _soundOff
 
bool _outsideOnlyFl
 
bool _destinationOk
 
bool _largestClearScreen
 
float _addFix
 
int _savedBitIndex
 
int _numpal
 
int _key
 
bool _mouseClick
 
SaveStruct _coreVar
 
SaveStruct _saveStruct
 
int _maff
 
int _caff
 
int _crep
 
int _is
 
byte _destinationArray [7][25]
 
byte * _curPict
 
byte * _curAnim
 
byte * _rightFramePict
 
PaletteManager _paletteManager
 
GfxSurface _backgroundSurface
 
Common::RandomSource _randomSource
 
ScreenSurface_screenSurface
 
SoundManager_soundManager
 
SavegameManager_savegameManager
 
Menu_menu
 
MouseHandler_mouse
 
TextHandler_text
 
DialogManager_dialogManager
 
- 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
}
 
- Protected Member Functions inherited from Engine
virtual int runDialog (GUI::Dialog &dialog)
 
void defaultSyncSoundSettings ()
 
- Protected Attributes inherited from Engine
Common::TimerManager_timer
 
Common::EventManager_eventMan
 
Common::SaveFileManager_saveFileMan
 
GUI::Dialog_mainMenuDialog
 
const Common::String _targetName
 
int32 _activeEnhancements = kEnhGameBreakingBugFixes
 

Member Function Documentation

◆ hasFeature()

bool Mortevielle::MortevielleEngine::hasFeature ( EngineFeature  f) const
overridevirtual

Determine whether the engine supports the specified feature.

Reimplemented from Engine.

◆ canLoadGameStateCurrently()

bool Mortevielle::MortevielleEngine::canLoadGameStateCurrently ( Common::U32String msg = nullptr)
overridevirtual

Indicate whether a game state can be loaded.

Parameters
msgOptional pointer to message explaining why it is disabled

Reimplemented from Engine.

◆ canSaveGameStateCurrently()

bool Mortevielle::MortevielleEngine::canSaveGameStateCurrently ( Common::U32String msg = nullptr)
overridevirtual

Indicate whether a game state can be saved.

Parameters
msgOptional pointer to message explaining why it is disabled

Reimplemented from Engine.

◆ loadGameState()

Common::Error Mortevielle::MortevielleEngine::loadGameState ( int  slot)
overridevirtual

Load a game state.

Parameters
slotThe slot from which a save state should be loaded.
Returns
kNoError on success, otherwise an error code.

Reimplemented from Engine.

◆ saveGameState()

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

Save a game state.

Parameters
slotThe slot into which the save state should be stored.
descDescription for the save state, entered by the user.
isAutosaveExpected to be true if an autosave is being created.
Returns
kNoError on success, otherwise an error code.

Reimplemented from Engine.

◆ run()

Common::Error Mortevielle::MortevielleEngine::run ( )
overridevirtual

Initialize the engine and start its main loop.

Returns
kNoError on success, otherwise an error code.

Implements Engine.

◆ pauseEngineIntern()

void Mortevielle::MortevielleEngine::pauseEngineIntern ( bool  pause)
overridevirtual

Actual implementation of pauseEngine by subclasses.

See also
Engine::pauseEngine

Reimplemented from Engine.

◆ getSaveStateName()

Common::String Mortevielle::MortevielleEngine::getSaveStateName ( int  slot) const
inlineoverridevirtual

Generate the savegame filename.

Reimplemented from Engine.


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