22 #ifndef SHERLOCK_SHERLOCK_H 23 #define SHERLOCK_SHERLOCK_H 25 #include "common/scummsys.h" 26 #include "common/array.h" 27 #include "common/endian.h" 28 #include "common/hash-str.h" 29 #include "common/serializer.h" 30 #include "common/random.h" 31 #include "common/savefile.h" 32 #include "common/util.h" 34 #include "engines/engine.h" 36 #include "sherlock/animation.h" 37 #include "sherlock/debugger.h" 38 #include "sherlock/events.h" 39 #include "sherlock/fixed_text.h" 40 #include "sherlock/inventory.h" 41 #include "sherlock/journal.h" 42 #include "sherlock/map.h" 43 #include "sherlock/music.h" 44 #include "sherlock/people.h" 45 #include "sherlock/resources.h" 46 #include "sherlock/saveload.h" 47 #include "sherlock/scene.h" 48 #include "sherlock/screen.h" 49 #include "sherlock/sound.h" 50 #include "sherlock/talk.h" 51 #include "sherlock/user_interface.h" 52 #include "sherlock/detection.h" 58 kDebugLevelAdLibDriver = 2 << 0,
59 kDebugLevelMT32Driver = 3 << 0,
60 kDebugLevelMusic = 4 << 0
63 #define SHERLOCK_SCREEN_WIDTH _vm->_screen->width() 64 #define SHERLOCK_SCREEN_HEIGHT _vm->_screen->height() 65 #define SHERLOCK_SCENE_WIDTH _vm->_screen->_backBuffer1.width() 66 #define SHERLOCK_SCENE_HEIGHT (IS_SERRATED_SCALPEL ? 138 : 480) 67 #define SCENES_COUNT (IS_SERRATED_SCALPEL ? 63 : 101) 68 #define MAX_BGSHAPES (IS_SERRATED_SCALPEL ? 64 : 150) 70 #define COL_INFO_FOREGROUND (IS_SERRATED_SCALPEL ? (byte)Scalpel::INFO_FOREGROUND : (byte)Tattoo::INFO_FOREGROUND) 71 #define COL_PEN_COLOR (IS_SERRATED_SCALPEL ? (byte)Scalpel::PEN_COLOR : (byte)Tattoo::PEN_COLOR) 72 #define COL_PEN_HIGHLIGHT (IS_SERRATED_SCALPEL ? 15 : 129) 93 virtual void showOpening() = 0;
95 virtual void startScene() {}
129 bool _showOriginalSavesDialog;
131 bool _isScreenDoubled;
132 bool _startupAutosave;
175 virtual bool isDemo()
const;
222 #define IS_ROSE_TATTOO (_vm->getGameID() == GType_RoseTattoo) 223 #define IS_SERRATED_SCALPEL (_vm->getGameID() == GType_SerratedScalpel) 224 #define IS_3DO (_vm->getPlatform() == Common::kPlatform3DO) Definition: fixed_text.h:74
void synchronize(Serializer &s)
Common::Error saveGameState(int slot, const Common::String &desc, bool isAutosave=false) override
Definition: detection.h:34
EngineFeature
Definition: engine.h:253
Common::Language getLanguage() const
virtual void initialize()
Definition: inventory.h:78
Definition: animation.h:29
Definition: animation.h:35
uint getRandomNumber(uint max)
void setFlags(int flagNum)
Definition: resources.h:83
Definition: saveload.h:59
bool canLoadGameStateCurrently(Common::U32String *msg=nullptr) override
Definition: debugger.h:35
Definition: serializer.h:79
virtual bool isDemo() const
GameType getGameID() const
bool canSaveGameStateCurrently(Common::U32String *msg=nullptr) override
virtual void loadConfig()
bool readFlags(int flagNum)
Common::Error loadGameState(int slot) override
Definition: sherlock.h:76
Common::Error run() override
virtual void saveConfig()
int getRandomNumber(int limit)
Definition: sherlock.h:195
Definition: user_interface.h:62
bool hasFeature(EngineFeature f) const override
void syncSoundSettings() override
void setFlagsDirect(int flagNum)
Common::Platform getPlatform() const
debug level for "EMCInterpreter" functions
Definition: kyra_v1.h:97
Language
Definition: language.h:45