diff options
author | Nipun Garg | 2019-06-21 08:31:45 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:54 +0200 |
commit | e4edb7dc507e579484d1ad5abdb9edf59e2379fc (patch) | |
tree | 68b88dd49c0a618cb01427f7125c4f00d5db68b1 /engines/hdb/map-loader.h | |
parent | 94d443bfa8bb14b8b2ea8a10bd8a5c085268be76 (diff) | |
download | scummvm-rg350-e4edb7dc507e579484d1ad5abdb9edf59e2379fc.tar.gz scummvm-rg350-e4edb7dc507e579484d1ad5abdb9edf59e2379fc.tar.bz2 scummvm-rg350-e4edb7dc507e579484d1ad5abdb9edf59e2379fc.zip |
HDB: Add Foreground data
Addition includes constants, struct and member
variables
Diffstat (limited to 'engines/hdb/map-loader.h')
-rw-r--r-- | engines/hdb/map-loader.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/engines/hdb/map-loader.h b/engines/hdb/map-loader.h index 9a44cd02ba..8ee0760643 100644 --- a/engines/hdb/map-loader.h +++ b/engines/hdb/map-loader.h @@ -29,7 +29,9 @@ namespace HDB { enum { kScreenXTiles = 17, - kScreenYTiles = 16 + kScreenYTiles = 16, + kMaxGratings = 250, + kMaxForegrounds = 250 }; struct MSMIcon { @@ -47,6 +49,14 @@ struct MSMIcon { MSMIcon(): icon(0), x(0), y(0), funcInit(""), funcAction(""), funcUse(""), dir(0), level(0), value1(0), value2(0) {} }; +struct Foreground { + uint16 x; + uint16 y; + uint16 tile; + + Foreground() : x(0), y(0), tile(0) {} +}; + struct SeeThroughTile { uint16 x; uint16 y; @@ -58,6 +68,7 @@ struct SeeThroughTile { class Map { public: Map(); + ~Map(); int loadTiles(); bool load(Common::SeekableReadStream *stream); @@ -83,6 +94,9 @@ public: int _mapTileX, _mapTileY; // Tile Coordinates of Map int _mapTileXOff, _mapTileYOff; // Tile Coordinates Offset (0-31) + Foreground *_gratings[kMaxGratings], *_foregrounds[kMaxForegrounds]; + int _numGratings, _numForegrounds; + int _animCycle; // Tile Animation Counter Common::Array<uint32> _listBGAnimSlow; Common::Array<uint32> _listBGAnimMedium; |