ScummVM
Scumm::ScummEngine_vCUPhe Class Reference

#include <intern_he.h>

+ Inheritance diagram for Scumm::ScummEngine_vCUPhe:
+ Collaboration diagram for Scumm::ScummEngine_vCUPhe:

Public Member Functions

 ScummEngine_vCUPhe (OSystem *syst, const DetectorResult &dr)
 
 ~ScummEngine_vCUPhe () override
 
Common::Error run () override
 Init the engine and start its main loop. More...
 
void parseEvents ()
 
- Public Member Functions inherited from Engine
 Engine (OSystem *syst)
 
virtual ~Engine ()
 
virtual void initializePath (const Common::FSNode &gamePath)
 Init SearchMan according to the game path. More...
 
virtual void errorString (const char *buf_input, char *buf_output, int buf_output_size)
 Prepare an error string, which is printed by the error() function. More...
 
virtual GUI::DebuggergetDebugger ()
 Return the engine's debugger instance, if any. More...
 
void setDebugger (GUI::Debugger *debugger)
 Sets the engine's debugger. More...
 
GUI::DebuggergetOrCreateDebugger ()
 Return the engine's debugger instance, or create one if none is present. More...
 
virtual bool hasFeature (EngineFeature f) const
 Determine whether the engine supports the specified feature. More...
 
virtual void syncSoundSettings ()
 Notify the engine that the sound settings in the config manager may have changed and that it hence should adjust any internal volume etc. More...
 
virtual void flipMute ()
 Flip mute all sound option. More...
 
virtual Common::String getSaveStateName (int slot) const
 Generates the savegame filename. More...
 
virtual Common::Error loadGameState (int slot)
 Load a game state. More...
 
virtual Common::Error loadGameStream (Common::SeekableReadStream *stream)
 Load a game state. More...
 
void setGameToLoadSlot (int slot)
 Sets the game slot for a savegame to be loaded after global main menu execution. More...
 
virtual bool canLoadGameStateCurrently ()
 Indicates whether a game state can be loaded. More...
 
virtual Common::Error saveGameState (int slot, const Common::String &desc, bool isAutosave=false)
 Save a game state. More...
 
virtual Common::Error saveGameStream (Common::WriteStream *stream, bool isAutosave=false)
 Save a game state. More...
 
virtual bool canSaveGameStateCurrently ()
 Indicates whether a game state can be saved. More...
 
bool saveGameDialog ()
 Shows the ScummVM save dialog, allowing users to save their game. More...
 
bool loadGameDialog ()
 Shows the ScummVM Restore dialog, allowing users to load a game. More...
 
void pauseEngine (bool pause)
 Pause or resume the engine. More...
 
bool isPaused () const
 Return whether the engine is currently paused or not. More...
 
void openMainMenuDialog ()
 Run the Global Main Menu Dialog. More...
 
uint32 getTotalPlayTime () const
 Get the total play time. More...
 
void setTotalPlayTime (uint32 time=0)
 Set the game time counter to the specified time. More...
 
Common::TimerManagergetTimerManager ()
 
Common::EventManagergetEventManager ()
 
Common::SaveFileManagergetSaveFileManager ()
 
void checkCD ()
 On some systems, check if the game appears to be run from CD. More...
 
void handleAutoSave ()
 Checks for whether it's time to do an autosave, and if so, does it. More...
 
void saveAutosaveIfEnabled ()
 Does an autosave immediately if autosaves are turned on. More...
 
virtual bool canSaveAutosaveCurrently ()
 Indicates whether an autosave can currently be saved. More...
 
virtual int getAutosaveSlot () const
 Returns the slot that should be used for autosaves. More...
 
bool shouldPerformAutoSave (int lastSaveTime)
 

Public Attributes

OSystem_syst
 
GameSettings _game
 
- Public Attributes inherited from Engine
OSystem_system
 
Audio::Mixer_mixer
 

Protected Attributes

CUP_Player_cupPlayer
 
FilenamePattern _filenamePattern
 
- 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, kSupportsRTL, kSupportsLoadingDuringRuntime, kSupportsSavingDuringRuntime }
 A feature in this context means an ability of the engine which can be either available or not. More...
 
- Static Public Member Functions inherited from Engine
static void quitGame ()
 Request the engine to quit. More...
 
static bool shouldQuit ()
 Return whether the ENGINE should quit respectively should return to the launcher. More...
 
static MetaEnginegetMetaEngine ()
 
static bool warnUserAboutUnsupportedGame ()
 Display a warning to the user that the game is not fully supported. More...
 
- Protected Member Functions inherited from Engine
virtual int runDialog (GUI::Dialog &dialog)
 
virtual void pauseEngineIntern (bool pause)
 Actual implementation of pauseEngine by subclasses. More...
 

Detailed Description

Definition at line 675 of file intern_he.h.

Constructor & Destructor Documentation

◆ ScummEngine_vCUPhe()

Scumm::ScummEngine_vCUPhe::ScummEngine_vCUPhe ( OSystem syst,
const DetectorResult dr 
)

Definition at line 964 of file scumm.cpp.

◆ ~ScummEngine_vCUPhe()

Scumm::ScummEngine_vCUPhe::~ScummEngine_vCUPhe ( )
override

Definition at line 972 of file scumm.cpp.

Member Function Documentation

◆ parseEvents()

void Scumm::ScummEngine_vCUPhe::parseEvents ( )

Definition at line 986 of file scumm.cpp.

◆ run()

Common::Error Scumm::ScummEngine_vCUPhe::run ( )
overridevirtual

Init the engine and start its main loop.

Returns
returns kNoError on success, else an error code.

Implements Engine.

Definition at line 976 of file scumm.cpp.

Member Data Documentation

◆ _cupPlayer

CUP_Player* Scumm::ScummEngine_vCUPhe::_cupPlayer
protected

Definition at line 677 of file intern_he.h.

◆ _filenamePattern

FilenamePattern Scumm::ScummEngine_vCUPhe::_filenamePattern
protected

Definition at line 678 of file intern_he.h.

◆ _game

GameSettings Scumm::ScummEngine_vCUPhe::_game

Definition at line 690 of file intern_he.h.

◆ _syst

OSystem* Scumm::ScummEngine_vCUPhe::_syst

Definition at line 688 of file intern_he.h.


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