ScummVM
Sherlock::Tattoo::TattooEngine Class Reference

#include <tattoo.h>

Inheritance diagram for Sherlock::Tattoo::TattooEngine:
Collaboration diagram for Sherlock::Tattoo::TattooEngine:

Public Member Functions

 TattooEngine (OSystem *syst, const SherlockGameDescription *gameDesc)
 
virtual ~TattooEngine ()
 
void doFoolscapPuzzle ()
 Shows the foolscap puzzle. More...
 
virtual void saveConfig ()
 Save the game configuration. More...
 
virtual bool canLoadGameStateCurrently ()
 Returns true if a savegame can be loaded. More...
 
virtual bool canSaveGameStateCurrently ()
 Returns true if the game can be saved. More...
 
- Public Member Functions inherited from Sherlock::SherlockEngine
 SherlockEngine (OSystem *syst, const SherlockGameDescription *gameDesc)
 
virtual ~SherlockEngine ()
 
virtual Common::Error run ()
 Main method for running the game. More...
 
virtual Common::Error loadGameState (int slot)
 Called by the GMM to load a savegame. More...
 
virtual Common::Error saveGameState (int slot, const Common::String &desc)
 Called by the GMM to save the game. More...
 
virtual void syncSoundSettings ()
 Called by the engine when sound settings are updated. More...
 
virtual bool isDemo () const
 Returns whether the version is a demo. More...
 
GameType getGameID () const
 Returns the Id of the game. More...
 
Common::Platform getPlatform () const
 Returns the platform the game's datafiles are for. More...
 
Common::Language getLanguage () const
 Return the game's language. More...
 
int getRandomNumber (int limit)
 Return a random number. More...
 
bool readFlags (int flagNum)
 Read the state of a global flag. More...
 
void setFlags (int flagNum)
 Sets a global flag to either true or false depending on whether the specified flag is positive or negative. More...
 
void setFlagsDirect (int flagNum)
 Set a global flag to 0 or 1 depending on whether the passed flag is negative or positive. More...
 
void synchronize (Serializer &s)
 Synchronize the data for a savegame. More...
 
- Public Member Functions inherited from Engine
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...
 
 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...
 
virtual void initKeymap ()
 
virtual void deinitKeymap ()
 
virtual void flipMute ()
 Flip mute all sound option. More...
 
void setGameToLoadSlot (int slot)
 Sets the game slot for a savegame to be loaded after global main menu execution. More...
 

Public Attributes

bool _runningProlog
 
bool _fastMode
 
bool _allowFastMode
 
bool _transparentMenus
 
bool _textWindowsOn
 
- Public Attributes inherited from Sherlock::SherlockEngine
const SherlockGameDescription_gameDescription
 
Animation_animation
 
Debugger_debugger
 
Events_events
 
FixedText_fixedText
 
Inventory_inventory
 
Journal_journal
 
Map_map
 
Music_music
 
People_people
 
Resources_res
 
SaveManager_saves
 
Scene_scene
 
Screen_screen
 
Sound_sound
 
Talk_talk
 
UserInterface_ui
 
Common::RandomSource _randomSource
 
Common::Array< bool > _flags
 
bool _useEpilogue2
 
int _loadGameSlot
 
bool _canLoadSave
 
bool _showOriginalSavesDialog
 
bool _interactiveFl
 
bool _isScreenDoubled
 
- Public Attributes inherited from Engine
OSystem_system
 
Audio::Mixer_mixer
 

Protected Member Functions

virtual void initialize ()
 Initialize the engine. More...
 
virtual void showOpening ()
 
virtual void startScene ()
 Starting a scene within the game. More...
 
virtual void loadConfig ()
 Load configuration options. More...
 
- Protected Member Functions inherited from Sherlock::SherlockEngine
virtual bool hasFeature (EngineFeature f) const
 Returns a list of features the game itself supports. More...
 
- Protected Member Functions inherited from Engine
virtual int runDialog (GUI::Dialog &dialog)
 
bool shouldPerformAutoSave (int lastSaveTime)
 Indicate whether an autosave should be performed. More...
 
virtual void pauseEngineIntern (bool pause)
 Actual implementation of pauseEngine by subclasses. More...
 

Private Member Functions

void loadInitialPalette ()
 Loads the initial palette for the game. More...
 
void loadInventory ()
 Load the initial inventory. More...
 

Private Attributes

Darts _darts
 
WidgetFoolscap _foolscapWidget
 

Additional Inherited Members

- Public Types inherited from Engine
enum  EngineFeature {
  kSupportsSubtitleOptions, kSupportsRTL, kSupportsLoadingDuringRuntime, kSupportsSavingDuringRuntime,
  kSupportsJoystick
}
 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 bool warnUserAboutUnsupportedGame ()
 Display a warning to the user that the game is not fully supported. More...
 
- Protected Attributes inherited from Engine
Common::TimerManager_timer
 
Common::EventManager_eventMan
 
Common::SaveFileManager_saveFileMan
 
GUI::Dialog_mainMenuDialog
 
const Common::String _targetName
 

Detailed Description

Definition at line 55 of file tattoo.h.

Constructor & Destructor Documentation

◆ TattooEngine()

Sherlock::Tattoo::TattooEngine::TattooEngine ( OSystem syst,
const SherlockGameDescription gameDesc 
)

Definition at line 37 of file tattoo.cpp.

◆ ~TattooEngine()

Sherlock::Tattoo::TattooEngine::~TattooEngine ( )
virtual

Definition at line 46 of file tattoo.cpp.

Member Function Documentation

◆ canLoadGameStateCurrently()

bool Sherlock::Tattoo::TattooEngine::canLoadGameStateCurrently ( )
virtual

Returns true if a savegame can be loaded.

Reimplemented from Sherlock::SherlockEngine.

Definition at line 207 of file tattoo.cpp.

◆ canSaveGameStateCurrently()

bool Sherlock::Tattoo::TattooEngine::canSaveGameStateCurrently ( )
virtual

Returns true if the game can be saved.

Reimplemented from Sherlock::SherlockEngine.

Definition at line 212 of file tattoo.cpp.

◆ doFoolscapPuzzle()

void Sherlock::Tattoo::TattooEngine::doFoolscapPuzzle ( )

Shows the foolscap puzzle.

Definition at line 188 of file tattoo.cpp.

◆ initialize()

void Sherlock::Tattoo::TattooEngine::initialize ( )
protectedvirtual

Initialize the engine.

Reimplemented from Sherlock::SherlockEngine.

Definition at line 53 of file tattoo.cpp.

◆ loadConfig()

void Sherlock::Tattoo::TattooEngine::loadConfig ( )
protectedvirtual

Load configuration options.

Reimplemented from Sherlock::SherlockEngine.

Definition at line 192 of file tattoo.cpp.

◆ loadInitialPalette()

void Sherlock::Tattoo::TattooEngine::loadInitialPalette ( )
private

Loads the initial palette for the game.

Definition at line 143 of file tattoo.cpp.

◆ loadInventory()

void Sherlock::Tattoo::TattooEngine::loadInventory ( )
private

Load the initial inventory.

Definition at line 153 of file tattoo.cpp.

◆ saveConfig()

void Sherlock::Tattoo::TattooEngine::saveConfig ( )
virtual

Save the game configuration.

Reimplemented from Sherlock::SherlockEngine.

Definition at line 199 of file tattoo.cpp.

◆ showOpening()

void Sherlock::Tattoo::TattooEngine::showOpening ( )
protectedvirtual

Implements Sherlock::SherlockEngine.

Definition at line 49 of file tattoo.cpp.

◆ startScene()

void Sherlock::Tattoo::TattooEngine::startScene ( )
protectedvirtual

Starting a scene within the game.

Reimplemented from Sherlock::SherlockEngine.

Definition at line 89 of file tattoo.cpp.

Member Data Documentation

◆ _allowFastMode

bool Sherlock::Tattoo::TattooEngine::_allowFastMode

Definition at line 88 of file tattoo.h.

◆ _darts

Darts Sherlock::Tattoo::TattooEngine::_darts
private

Definition at line 57 of file tattoo.h.

◆ _fastMode

bool Sherlock::Tattoo::TattooEngine::_fastMode

Definition at line 88 of file tattoo.h.

◆ _foolscapWidget

WidgetFoolscap Sherlock::Tattoo::TattooEngine::_foolscapWidget
private

Definition at line 58 of file tattoo.h.

◆ _runningProlog

bool Sherlock::Tattoo::TattooEngine::_runningProlog

Definition at line 87 of file tattoo.h.

◆ _textWindowsOn

bool Sherlock::Tattoo::TattooEngine::_textWindowsOn

Definition at line 90 of file tattoo.h.

◆ _transparentMenus

bool Sherlock::Tattoo::TattooEngine::_transparentMenus

Definition at line 89 of file tattoo.h.


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