22 #ifndef ASYLUM_RESOURCES_DATA_H 23 #define ASYLUM_RESOURCES_DATA_H 25 #include "common/rect.h" 26 #include "common/serializer.h" 28 #include "engines/asylum/shared.h" 40 kFlagSceneRectChanged,
42 kFlagSkipScriptProcessing,
43 kFlagIsEncounterRunning,
44 kFlagEncounterDisablePlayerOnExit,
45 kFlagActorUpdateEnabledCheck,
46 kFlagActorUpdateStatus15Check
54 int32 &operator [](uint32 index);
141 bool actorEnableForStatus7;
142 ActorDirection globalDirection;
146 void resetChapter2Data();
150 bool getFlag(GlobalFlag flag)
const;
151 void setFlag(GlobalFlag flag,
bool state);
162 uint32 getAmbientTick(uint32 index)
const;
163 void setAmbientTick(uint32 index, uint32 val);
164 uint32 getAmbientFlag(uint32 index)
const;
165 void setAmbientFlag(uint32 index, uint32 val);
166 void resetAmbientFlags();
182 void setGlobalPoint(
const Common::Point &point) { _globalPoint = point; }
184 void setSceneCoords(
const Common::Point &point) { _sceneCoords = point; }
185 int16 getSceneOffset() {
return _sceneOffset; }
186 void setSceneOffset(int16 sceneOffset) { _sceneOffset = sceneOffset; }
187 int16 getSceneOffsetAdd() {
return _sceneOffsetAdd; }
188 void setSceneOffsetAdd(int16 sceneOffsetAdd) { _sceneOffsetAdd = sceneOffsetAdd; }
191 void saveCursorResources(ResourceId *resources, uint32 size);
192 void loadCursorResources(ResourceId *resources, uint32 size)
const;
193 void saveSceneFonts(ResourceId font1, ResourceId font2, ResourceId font3);
194 void loadSceneFonts(ResourceId *font1, ResourceId *font2, ResourceId *font3)
const;
195 void saveSmallCursor(int32 smallCurUp, int32 smallCurDown);
196 void loadSmallCursor(int32 *smallCurUp, int32 *smallCurDown)
const;
197 void saveEncounterFrameBackground(ResourceId encounterFrameBg) { _encounterFrameBg = encounterFrameBg; }
198 void loadEncounterFrameBackground(ResourceId *encounterFrameBg) { *encounterFrameBg = _encounterFrameBg; }
201 int32 getMatteVar1()
const {
return _matteVar1; }
202 void setMatteVar1(int32 val) { _matteVar1 = val; }
203 uint32 getMatteVar2()
const {
return _matteVar2; }
204 void setMatteVar2(uint32 val) { _matteVar2 = val; }
205 int16 getMatteBarHeight()
const {
return _matteBarHeight; }
206 void setMatteBarHeight(int16 val) { _matteBarHeight = val; }
207 bool getMatteInitialized()
const {
return _matteInitialized; }
208 void setMatteInitialized(
bool val) { _matteInitialized = val; }
209 bool getMattePlaySound()
const {
return _mattePlaySound; }
210 void setMattePlaySound(
bool val) { _mattePlaySound = val; }
213 void setChapter2Counter(uint32 index, int32 val);
214 int32 getChapter2Counter(uint32 index)
const;
215 int32 getChapter2FrameIndexOffset()
const {
return _chapter2FrameIndexOffset; }
216 void setChapter2FrameIndexOffset(int32 val) { _chapter2FrameIndexOffset = val; }
217 ActorIndex getChapter2ActorIndex()
const {
return _chapter2ActorIndex; }
218 void setChapter2ActorIndex(ActorIndex val) { _chapter2ActorIndex = val; }
221 int32 getActorUpdateStatusEnabledCounter() {
return _actorUpdateStatusEnabledCounter; }
222 void setActorUpdateStatusEnabledCounter(int32 val) { _actorUpdateStatusEnabledCounter = val; }
225 int32 getEventUpdate() {
return _eventUpdate; }
226 void setEventUpdate(int32 val) { _eventUpdate = val; }
227 uint32 getNextScreenUpdate() {
return _nextScreenUpdate; }
228 void setNextScreenUpdate(uint32 nextScreenUpdate) { _nextScreenUpdate = nextScreenUpdate; }
231 uint32 _ambientFlags[15];
232 uint32 _ambientTicks[15];
234 bool _flagSkipScriptProcessing;
235 bool _flagIsEncounterRunning;
239 int16 _sceneOffsetAdd;
240 ResourceId _cursorResources[13];
241 ResourceId _sceneFonts[3];
242 uint32 _chapter2Data1[5];
245 ResourceId _encounterFrameBg;
246 bool _flagSkipDrawScene;
248 bool _flagActorUpdateEnabledCheck;
249 bool _matteInitialized;
250 bool _mattePlaySound;
251 int32 _currentScreenUpdatesCount;
252 uint32 _chapter2Data2[9];
253 int32 _chapter2Counters[8];
254 int32 _chapter2Data3[23];
255 int32 _chapter2FrameIndexOffset;
256 ActorIndex _chapter2ActorIndex;
258 uint32 _chapter2Data4[18];
259 int32 _actorUpdateStatusEnabledCounter;
260 uint32 _chapter2Data5[9];
261 bool _flagEncounterDisablePlayerOnExit;
263 uint32 _nextScreenUpdate;
265 bool _flagActorUpdateStatus15Check;
273 int16 _matteBarHeight;
281 #endif // ASYLUM_RESOURCES_DATA_H
ActorIndex getPlayerIndex()
Definition: data.h:171
Definition: serializer.h:79
Definition: serializer.h:308
void setPlayerIndex(ActorIndex index)
Definition: data.h:178