diff options
author | Nipun Garg | 2019-06-25 02:05:41 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:59 +0200 |
commit | 88bab8cc79ab5f13cec7124564224773b2026ef6 (patch) | |
tree | d0b17784d038c6ac078ba2237c1185254a2c5acf | |
parent | 595b520f4aaff697b62d049928763eafab29f3c0 (diff) | |
download | scummvm-rg350-88bab8cc79ab5f13cec7124564224773b2026ef6.tar.gz scummvm-rg350-88bab8cc79ab5f13cec7124564224773b2026ef6.tar.bz2 scummvm-rg350-88bab8cc79ab5f13cec7124564224773b2026ef6.zip |
HDB: Add getter-setter for _mapExplosions
-rw-r--r-- | engines/hdb/map-loader.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/hdb/map-loader.h b/engines/hdb/map-loader.h index f94c2a77a2..83307b9810 100644 --- a/engines/hdb/map-loader.h +++ b/engines/hdb/map-loader.h @@ -107,6 +107,13 @@ public: // Check if one of the tiles in a range exists in the map on either layer bool checkOneTileExistInRange(int tileIndex, int count); + bool explosionExist(int x, int y) { + return _mapExplosions[y * _width + x]; + } + void setExplosion(int x, int y, int value) { + _mapExplosions[y * _width + x] = value; + } + uint16 _width, _height; int _mapX, _mapY; // Coordinates of Map int _mapTileX, _mapTileY; // Tile Coordinates of Map |