From e4edb7dc507e579484d1ad5abdb9edf59e2379fc Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Fri, 21 Jun 2019 08:31:45 +0530 Subject: HDB: Add Foreground data Addition includes constants, struct and member variables --- engines/hdb/map-loader.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'engines/hdb/map-loader.h') 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 _listBGAnimSlow; Common::Array _listBGAnimMedium; -- cgit v1.2.3