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;
67 const float MS_PER_FRAME = 16.6667f;
74 GID_COMINGATTRACTIONS,
80 enum DgdsDetailLevel {
123 static const byte HOC_CHAR_SWAP_ICONS[];
158 DgdsDetailLevel _detailLevel;
162 bool _justChangedScene1;
163 bool _justChangedScene2;
172 MenuId _menuToTrigger;
175 const char *_rstFileName;
182 int16 _lastGlobalFade;
183 uint _lastGlobalFadedPal;
193 DgdsGameId getGameId()
const {
return _gameId; }
203 Decompressor *getDecompressor() {
return _decompressor; }
204 const SDSScene *getScene()
const {
return _scene; }
205 SDSScene *getScene() {
return _scene; }
206 GDSScene *getGDSScene() {
return _gdsScene; }
207 const FontManager *getFontMan()
const {
return _fontManager; }
211 Globals *getGameGlobals() {
return _gameGlobals; }
212 Inventory *getInventory() {
return _inventory; }
213 Clock &getClock() {
return _clock; }
217 bool changeScene(
int sceneNum);
218 void setMouseCursor(
int num);
220 int getTextSpeed()
const {
return _textSpeed; }
221 void setTextSpeed(int16 speed) { _textSpeed = speed; }
222 int16 getDifficulty()
const {
return _difficulty; }
223 void setDifficulty(int16 difficulty) { _difficulty = difficulty; }
224 DgdsDetailLevel getDetailLevel()
const {
return _detailLevel; }
225 void setDetailLevel(DgdsDetailLevel level) { _detailLevel = level; }
227 void setShowClock(
bool val);
228 bool justChangedScene1()
const {
return _justChangedScene1; }
229 bool justChangedScene2()
const {
return _justChangedScene2; }
254 void setBackgroundFile(
const Common::String &name) { _backgroundFile = name; }
255 const Common::String &getBackgroundFile()
const {
return _backgroundFile; }
256 void setMenuToTrigger(MenuId menu) { _menuToTrigger = menu; }
257 bool isInvButtonVisible()
const;
258 ShellGame *getShellGame() {
return _shellGame; }
259 HocIntro *getHocIntro() {
return _hocIntro; }
260 ChinaTrain *getChinaTrain() {
return _chinaTrain; }
261 ChinaTank *getChinaTank() {
return _chinaTank; }
262 DragonArcade *getDragonArcade() {
return _dragonArcade; }
263 void setSkipNextFrame() { _skipNextFrame =
true; }
264 uint32 getThisFrameMs()
const {
return _thisFrameMs; }
267 void setFlipMode(
bool mode) { _flipMode = mode; }
269 bool isEGA()
const {
return _isEGA; }
271 void enableKeymapper();
272 void disableKeymapper();
279 void checkDrawInventoryButton();
281 void init(
bool restarting);
282 void loadGameFiles();
283 void loadRestartFile();
288 #endif // DGDS_DGDS_H Definition: managed_surface.h:51
EngineFeature
Definition: engine.h:253
Definition: game_palettes.h:45
Definition: advancedDetector.h:163
Definition: inventory.h:37
Definition: hoc_intro.h:33
Definition: serializer.h:79
Common::Error saveGameStream(Common::WriteStream *stream, bool isAutosave=false) override
Definition: dgds.h:237
bool canSaveAutosaveCurrently() override
bool hasFeature(EngineFeature f) const override
Definition: dgds.h:247
virtual Common::Error run() override
bool canLoadGameStateCurrently(Common::U32String *msg=nullptr) override
Definition: china_tank.h:28
bool canSaveGameStateCurrently(Common::U32String *msg=nullptr) override
Common::Error loadGameStream(Common::SeekableReadStream *stream) override
Definition: dgds.h:242
Definition: dragon_arcade.h:85
Definition: movie_decoder.h:32
Definition: decompress.h:67
Definition: china_train.h:28
Definition: shell_game.h:30
Language
Definition: language.h:45
Definition: resource.h:49