25 #include "common/scummsys.h" 26 #include "common/system.h" 27 #include "common/savefile.h" 28 #include "common/fs.h" 30 #include "engines/engine.h" 50 #define CONFIG_MUSICVOL "music_volume" 51 #define CONFIG_SFXVOL "sfx_volume" 52 #define CONFIG_SPEECHVOL "speech_volume" 53 #define CONFIG_MSTONE7 "hdb_memory_heap" 54 #define CONFIG_MSTONE14 "lua_stack_offset" 55 #define CONFIG_MSTONE21 "fmod_mix_timer" 56 #define CONFIG_SOUNDCACHE "sound_cache_max" // Unused 57 #define CONFIG_GFXCACHE "gfx_cache_max" // Unused 58 #define CONFIG_CHEAT "hypercheat" 59 #define CONFIG_NOSPEECH "speech_mute" 60 #define CONFIG_MUTEALL "mute" 70 kAnimFrameDelay = kGameFPS / 30,
71 kAnimSlowFrames = kAnimFrameDelay * 10,
72 kAnimMediumFrames = kAnimFrameDelay * 6,
73 kAnimFastFrames = kAnimFrameDelay * 2
86 enum HDBDebugChannels {
87 kDebugExample1 = 1 << 0,
88 kDebugExample2 = 1 << 1
100 kFlagPlayerBlock = 0x1,
101 kFlagMonsterBlock = 0x2,
104 kFlagPlayerDie = 0x8,
105 kFlagMonsterDie = 0x10,
106 kFlagInvisible = 0x20,
108 kFlagForeground = 0x80,
109 kFlagMonsterHurt = 0x100,
111 kFlagPushRight = 0x400,
112 kFlagPushDown = 0x800,
113 kFlagPushLeft = 0x1000,
114 kFlagLightSink = 0x2000,
116 kFlagHeavySink = 0x4000,
118 kFlagLightMelt = 0x8000,
119 kFlagHeavyMelt = 0x10000,
120 kFlagSlide = 0x20000,
121 kFlagEnergyFloor = 0x40000,
122 kFlagPlasmaFloor = 0x6000D,
123 kFlagRadFloor = 0x6800D,
124 kFlagTeleport = 0x80000,
125 kFlagSpecial = 0x100000,
127 kFlagStairBot = 0x200000,
128 kFlagStairTop = 0x400000,
129 kFlagAnimSlow = 0x800000,
130 kFlagAnimMedium = 0x1000000,
131 kFlagAnimFast = 0x1800000,
132 kFlagMasked = 0x2000000,
133 kFlagGrating = 0x4000000,
134 kFlagPlummet = 0x8000000
143 Save() : fileSlot(0), seconds(0) {
158 void syncSoundSettings()
override;
162 const char *getGameId()
const;
163 const char *getGameFile()
const;
164 uint32 getGameFlags()
const;
168 bool isHandango()
const;
174 int _screenDrawWidth;
175 int _screenDrawHeight;
203 bool startMap(
const char *name);
205 void changeMap(
const char *name) {
219 void saveWhenReady(
int slot) {
220 _saveInfo.active =
true;
221 _saveInfo.slot = slot;
224 void loadWhenReady(
int slot) {
225 _loadInfo.active =
true;
226 _loadInfo.slot = slot;
229 void setGameState(GameState gs) {
232 GameState getGameState() {
235 void changeGameState();
237 void moveMap(
int x,
int y);
238 void startMoveMap(
int x,
int y);
240 void setTargetXY(
int x,
int y);
243 void setupProgressBar(
int maxCount);
244 void drawProgressBar();
245 void makeProgress() {
249 void checkProgress();
250 void stopProgress() {
251 _progressActive =
false;
253 void drawLoadingScreen();
255 int getActionMode() {
258 void setActionMode(
int status) {
259 _actionMode = status;
271 _timePlayed = _timeSeconds = 0;
275 return _timePlayed / 1000;
278 uint32 getTimeSlice() {
282 uint32 getTimeSliceDelta() {
283 return _timeSlice - _prevTimeSlice;
290 int getDebug() {
return _debugFlag; }
291 void setDebug(
int flag) { _debugFlag = flag; }
302 char *lastMapName() {
return _lastMapname; }
303 char *currentMapName() {
return _currentMapname; }
304 char *getInMapName() {
return _inMapName; }
305 void setInMapName(
const char *name);
307 void changeLevel(
const char *name) {
315 int32 getStarsMonkeystone7() {
return _monkeystone7; }
316 int32 getStarsMonkeystone14() {
return _monkeystone14; }
317 int32 getStarsMonkeystone21() {
return _monkeystone21; }
319 void setStarsMonkeystone7(int32 value) { _monkeystone7 = value; }
320 void setStarsMonkeystone14(int32 value) { _monkeystone14 = value; }
321 void setStarsMonkeystone21(int32 value) { _monkeystone21 = value; }
323 void setCheatingOn() {
326 bool getCheatingOn() {
334 Picture *_progressGfx, *_progressMarkGfx;
335 Picture *_loadingScreenGfx, *_logoGfx;
336 bool _progressActive;
337 int _progressCurrent, _progressXOffset, _progressMax;
348 uint32 _timeSlice, _prevTimeSlice;
356 GameState _gameState;
366 char _currentMapname[64];
367 char _lastMapname[64];
369 char _currentLuaName[64];
370 char _lastLuaName[64];
375 int32 _monkeystone14;
376 int32 _monkeystone21;
379 char _changeMapname[64];
384 } _saveInfo, _loadInfo;
Definition: ai-player.h:25
EngineFeature
Definition: engine.h:253
Definition: savefile.h:54
size_t strlcpy(char *dst, const char *src, size_t size)
Definition: advancedDetector.h:163
Definition: file-manager.h:54
Definition: algorithm.h:29
Definition: lua-script.h:41