22 #ifndef ILLUSIONS_BACKGROUNDRESOURCE_H 23 #define ILLUSIONS_BACKGROUNDRESOURCE_H 25 #include "illusions/camera.h" 26 #include "illusions/graphics.h" 27 #include "illusions/pathfinder.h" 28 #include "illusions/resourcesystem.h" 29 #include "graphics/surface.h" 31 #include "common/array.h" 32 #include "common/file.h" 33 #include "common/list.h" 34 #include "common/memstream.h" 35 #include "common/rect.h" 36 #include "common/substream.h" 37 #include "common/system.h" 41 class IllusionsEngine;
48 void load(
Resource *resource)
override;
49 bool isFlag(
int flag)
override;
55 int16 _width, _height;
77 int16 _width, _height;
78 int16 _mapWidth, _mapHeight;
95 uint32 getRegionSequenceId(
int regionIndex);
98 byte *_regionSequenceIds;
99 int16 _width, _height;
100 int16 _mapWidth, _mapHeight;
101 byte *_map, *_values;
137 void load(byte *data, uint32 dataSize);
138 int findMasterBgIndex();
144 Palette *getPalette(uint index);
153 uint _priorityLayersCount;
156 uint _scaleLayersCount;
159 uint _regionLayersCount;
162 uint _regionSequencesCount;
165 uint _backgroundObjectsCount;
168 uint _pathWalkPointsCount;
171 uint _pathWalkRectsCount;
181 const uint kMaxBackgroundItemSurfaces = 3;
187 void load(
Resource *resource)
override;
188 void unload()
override;
189 void pause()
override;
190 void unpause()
override;
200 void registerResources();
201 void unregisterResources();
215 void pauseBySceneId(uint32 sceneId);
216 void unpauseBySceneId(uint32 sceneId);
222 bool findActiveBackgroundNamedPoint(uint32 namedPointId,
Common::Point &pt);
233 #endif // ILLUSIONS_BACKGROUNDRESOURCE_H Definition: backgroundresource.h:209
Definition: backgroundresource.h:91
Definition: backgroundresource.h:82
Definition: graphics.h:59
Definition: backgroundresource.h:104
Definition: resourcesystem.h:51
Definition: backgroundresource.h:119
Definition: graphics.h:38
Definition: graphics.h:31
Definition: backgroundresource.h:126
Definition: backgroundresource.h:72
Definition: backgroundresource.h:133
Definition: resourcesystem.h:42
Definition: resourcesystem.h:78
Definition: actorresource.h:51
Definition: list_intern.h:51
Definition: backgroundresource.h:183
Definition: backgroundresource.h:61
Definition: backgroundresource.h:44
Definition: backgroundresource.h:54
Definition: illusions.h:92
Definition: backgroundresource.h:111