ScummVM API documentation
M4::Riddle::RiddleEngine Class Reference
Inheritance diagram for M4::Riddle::RiddleEngine:
M4::M4Engine Engine M4::Sections

Public Member Functions

 RiddleEngine (OSystem *syst, const M4GameDescription *gameDesc)
 
void showEngineInfo () override
 
void syncFlags (Common::Serializer &s) override
 
void global_daemon () override
 
void global_parser () override
 
- Public Member Functions inherited from M4::M4Engine
 M4Engine (OSystem *syst, const M4GameDescription *gameDesc)
 
uint32 getFeatures () const
 
bool useOriginalSaveLoad () const
 
Common::String getGameId () const
 
int getGameType () const
 
Common::Language getLanguage () const
 
int isDemo () const
 
uint32 getRandomNumber (uint maxNum)
 
bool hasFeature (EngineFeature f) const override
 
bool canLoadGameStateCurrently (Common::U32String *msg=nullptr) override
 
bool canSaveGameStateCurrently (Common::U32String *msg=nullptr) override
 
void syncSoundSettings () override
 
Common::Error loadGameState (int slot) override
 
Common::Error loadGameStateDoIt (int slot)
 
Common::Error syncGame (Common::Serializer &s)
 
Common::Error saveGameStream (Common::WriteStream *stream, bool isAutosave=false) override
 
Common::Error loadGameStream (Common::SeekableReadStream *stream) override
 
bool autosaveExists () const
 
bool savesExist () const
 
SaveStateList listSaves () const
 
bool loadSaveThumbnail (int slotNum, M4sprite *thumbnail) const
 
bool saveGameFromMenu (int slotNum, const Common::String &desc, Graphics::Surface &thumbnail)
 
virtual void showSaveScreen ()
 
virtual void showLoadScreen (LoadDialogSource fromMainMenu)
 
- 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 applyGameSettings ()
 
virtual void flipMute ()
 
virtual Common::String getSaveStateName (int slot) const
 
void setGameToLoadSlot (int slot)
 
virtual Common::Error saveGameState (int slot, const Common::String &desc, bool isAutosave=false)
 
bool saveGameDialog ()
 
bool loadGameDialog ()
 
- Public Member Functions inherited from M4::Sections
void global_section_constructor ()
 
void section_room_constructor ()
 
void game_daemon_code ()
 
void parse_player_command_now ()
 
void section_init ()
 
void daemon ()
 
void global_room_init ()
 
void tick ()
 
void section_parser ()
 
void room_preload ()
 
void room_init ()
 
void room_daemon ()
 
void room_pre_parser ()
 
void room_parser ()
 
void room_error ()
 
void room_shutdown ()
 
HotSpotReccustom_hotspot_which (int x, int y)
 
RoomgetRoom (int room) const
 
void m4SceneLoad ()
 
void m4RunScene ()
 
void m4EndScene ()
 
void pal_game_task ()
 
void camera_shift_xy (int32 x, int32 y)
 
void adv_camera_pan_step (int32 step)
 
bool game_camera_panning () const
 
virtual void global_pre_parser ()
 
void global_error_code ()
 

Protected Member Functions

M4::VarscreateVars () override
 
void setupConsole () override
 
- Protected Member Functions inherited from M4::M4Engine
Common::Error run () override
 
- Protected Member Functions inherited from Engine
virtual int runDialog (GUI::Dialog &dialog)
 
void defaultSyncSoundSettings ()
 
virtual void pauseEngineIntern (bool pause)
 

Additional Inherited Members

- Public Types inherited from M4::M4Engine
enum  LoadDialogSource { kLoadFromMainMenu, kLoadFromGameDialog, kLoadFromHotkey }
 
- 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)
 
- Public Attributes inherited from Engine
OSystem_system
 
Audio::Mixer_mixer
 
- Public Attributes inherited from M4::Sections
Section_activeSection = nullptr
 
Room_activeRoom = nullptr
 
- Protected Attributes inherited from M4::M4Engine
bool _useOriginalSaveLoad = false
 
- Protected Attributes inherited from Engine
Common::TimerManager_timer
 
Common::EventManager_eventMan
 
Common::SaveFileManager_saveFileMan
 
GUI::Dialog_mainMenuDialog
 
const Common::String _targetName
 
int32 _activeEnhancements = kEnhGameBreakingBugFixes
 
- Protected Attributes inherited from M4::Sections
Common::Array< Section * > _sections
 

Member Function Documentation

◆ createVars()

M4::Vars* M4::Riddle::RiddleEngine::createVars ( )
overrideprotectedvirtual

Creates the structure that holds all the global variables

Implements M4::M4Engine.

◆ setupConsole()

void M4::Riddle::RiddleEngine::setupConsole ( )
overrideprotectedvirtual

Sets up the debugging console

Implements M4::M4Engine.

◆ showEngineInfo()

void M4::Riddle::RiddleEngine::showEngineInfo ( )
overridevirtual

Show the engine information

Implements M4::M4Engine.


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