25 #include "common/error.h" 26 #include "common/events.h" 27 #include "common/platform.h" 28 #include "common/random.h" 29 #include "common/serializer.h" 31 #include "graphics/surface.h" 32 #include "graphics/managed_surface.h" 34 #include "engines/advancedDetector.h" 35 #include "engines/engine.h" 37 #include "gui/debugger.h" 39 #include "dgds/resource.h" 40 #include "dgds/clock.h" 41 #include "dgds/menu.h" 47 class ResourceManager;
63 const float MS_PER_FRAME = 16.6667f;
70 GID_COMINGATTRACTIONS,
74 enum DgdsDetailLevel {
99 static const byte HOC_CHAR_SWAP_ICONS[];
128 DgdsDetailLevel _detailLevel;
132 bool _justChangedScene1;
133 bool _justChangedScene2;
142 MenuId _menuToTrigger;
145 const char *_rstFileName;
158 DgdsGameId getGameId() {
return _gameId; }
166 Decompressor *getDecompressor() {
return _decompressor; }
167 const SDSScene *getScene()
const {
return _scene; }
168 SDSScene *getScene() {
return _scene; }
169 GDSScene *getGDSScene() {
return _gdsScene; }
170 const FontManager *getFontMan()
const {
return _fontManager; }
174 Globals *getGameGlobals() {
return _gameGlobals; }
175 Inventory *getInventory() {
return _inventory; }
176 Clock &getClock() {
return _clock; }
180 bool changeScene(
int sceneNum);
181 void setMouseCursor(uint num);
183 int getTextSpeed()
const {
return _textSpeed; }
184 void setTextSpeed(int16 speed) { _textSpeed = speed; }
185 int16 getDifficulty()
const {
return _difficulty; }
186 void setDifficulty(int16 difficulty) { _difficulty = difficulty; }
187 DgdsDetailLevel getDetailLevel()
const {
return _detailLevel; }
188 void setDetailLevel(DgdsDetailLevel level) { _detailLevel = level; }
190 void setShowClock(
bool val);
191 bool justChangedScene1()
const {
return _justChangedScene1; }
192 bool justChangedScene2()
const {
return _justChangedScene2; }
216 void setBackgroundFile(
const Common::String &name) { _backgroundFile = name; }
217 const Common::String &getBackgroundFile()
const {
return _backgroundFile; }
218 void setMenuToTrigger(MenuId menu) { _menuToTrigger = menu; }
219 bool isInvButtonVisible()
const;
220 ShellGame *getShellGame() {
return _shellGame; }
223 void setFlipMode(
bool mode) { _flipMode = mode; }
230 void checkDrawInventoryButton();
232 void init(
bool restarting);
233 void loadGameFiles();
234 void loadRestartFile();
239 #endif // DGDS_DGDS_H Definition: managed_surface.h:51
EngineFeature
Definition: engine.h:250
Definition: game_palettes.h:45
Definition: advancedDetector.h:163
Definition: inventory.h:37
Definition: serializer.h:79
Common::Error saveGameStream(Common::WriteStream *stream, bool isAutosave=false) override
Definition: dgds.h:200
bool canSaveAutosaveCurrently() override
bool hasFeature(EngineFeature f) const override
Definition: dgds.h:210
virtual Common::Error run() override
bool canLoadGameStateCurrently(Common::U32String *msg=nullptr) override
bool canSaveGameStateCurrently(Common::U32String *msg=nullptr) override
Common::Error loadGameStream(Common::SeekableReadStream *stream) override
Definition: dgds.h:205
Definition: movie_decoder.h:32
Definition: decompress.h:67
Definition: shell_game.h:30
Definition: resource.h:49