31 #include "common/random.h" 32 #include "common/system.h" 34 #include "graphics/pixelformat.h" 36 #include "engines/engine.h" 38 #include "gob/console.h" 39 #include "gob/detection/detection.h" 93 #define WRITE_VAR_UINT32(var, val) _vm->_inter->_variables->writeVar32(var, val) 94 #define WRITE_VAR_UINT16(var, val) _vm->_inter->_variables->writeVar16(var, val) 95 #define WRITE_VAR_UINT8(var, val) _vm->_inter->_variables->writeVar8(var, val) 96 #define WRITE_VAR_STR(var, str) _vm->_inter->_variables->writeVarString(var, str) 97 #define WRITE_VARO_UINT32(off, val) _vm->_inter->_variables->writeOff32(off, val) 98 #define WRITE_VARO_UINT16(off, val) _vm->_inter->_variables->writeOff16(off, val) 99 #define WRITE_VARO_UINT8(off, val) _vm->_inter->_variables->writeOff8(off, val) 100 #define WRITE_VARO_STR(off, str) _vm->_inter->_variables->writeOffString(off, str) 101 #define READ_VAR_UINT32(var) _vm->_inter->_variables->readVar32(var) 102 #define READ_VAR_UINT16(var) _vm->_inter->_variables->readVar16(var) 103 #define READ_VAR_UINT8(var) _vm->_inter->_variables->readVar8(var) 104 #define READ_VARO_UINT32(off) _vm->_inter->_variables->readOff32(off) 105 #define READ_VARO_UINT16(off) _vm->_inter->_variables->readOff16(off) 106 #define READ_VARO_UINT8(off) _vm->_inter->_variables->readOff8(off) 107 #define GET_VAR_STR(var) _vm->_inter->_variables->getAddressVarString(var) 108 #define GET_VARO_STR(off) _vm->_inter->_variables->getAddressOffString(off) 109 #define GET_VAR_FSTR(var) _vm->_inter->_variables->getAddressVarString(var) 110 #define GET_VARO_FSTR(off) _vm->_inter->_variables->getAddressOffString(off) 112 #define WRITE_VAR_OFFSET(off, val) WRITE_VARO_UINT32((off), (val)) 113 #define WRITE_VAR(var, val) WRITE_VAR_UINT32((var), (val)) 114 #define VAR_OFFSET(off) READ_VARO_UINT32(off) 115 #define VAR(var) READ_VAR_UINT32(var) 132 kDebugFuncOp = 1 << 0,
133 kDebugDrawOp = 1 << 1,
134 kDebugGobOp = 1 << 2,
135 kDebugSound = 1 << 3,
136 kDebugExpression = 1 << 4,
137 kDebugGameFlow = 1 << 5,
138 kDebugFileIO = 1 << 6,
139 kDebugSaveLoad = 1 << 7,
140 kDebugGraphics = 1 << 8,
141 kDebugVideo = 1 << 9,
142 kDebugHotspots = 1 << 10,
159 void pauseEngineIntern(
bool pause)
override;
160 void syncSoundSettings()
override;
165 void deinitGameParts();
183 bool _copyProtection;
188 bool _resourceSizeWorkaround;
189 bool _enableAdibou2FreeBananasWorkaround;
190 bool _enableAdibou2FlowersInfiniteLoopWorkaround;
210 const char *getLangDesc(int16 language)
const;
211 void validateLanguage();
212 void validateVideoMode(int16 videoMode);
217 Endianness getEndianness()
const;
219 GameType getGameType()
const;
222 bool hasAdLib()
const;
223 bool isSCNDemo()
const;
224 bool isBATDemo()
const;
225 bool is640x400()
const;
226 bool is640x480()
const;
227 bool is800x600()
const;
228 bool is16Colors()
const;
229 bool isTrueColor()
const;
232 bool hasResourceSizeWorkaround()
const;
236 void setTrueColor(
bool trueColor);
244 GameType getGameType(
const char *gameId)
const;
EngineFeature
Definition: engine.h:250
EndiannessMethod
Definition: gob.h:124
Different endianness in alternate file.
Definition: gob.h:128
Definition: double_serialization.h:36
Follows system endianness.
Definition: gob.h:127
Always little endian.
Definition: gob.h:125
Definition: saveload.h:39
Definition: avi_frames.h:36
Definition: detection.h:85
Definition: videoplayer.h:50
Language
Definition: language.h:45
Always big endian.
Definition: gob.h:126