aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNipun Garg2019-06-25 02:06:32 +0530
committerEugene Sandulenko2019-09-03 17:16:59 +0200
commitca15646569b48f26a29707dbcdf186371377ec00 (patch)
tree20548bbffb61e7d7c5ac6f7d2cf6a34de46fa6cc /engines
parent88bab8cc79ab5f13cec7124564224773b2026ef6 (diff)
downloadscummvm-rg350-ca15646569b48f26a29707dbcdf186371377ec00.tar.gz
scummvm-rg350-ca15646569b48f26a29707dbcdf186371377ec00.tar.bz2
scummvm-rg350-ca15646569b48f26a29707dbcdf186371377ec00.zip
HDB: Add getter-setter function for _mapExplosions
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/map-loader.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/hdb/map-loader.h b/engines/hdb/map-loader.h
index 83307b9810..199d9fe738 100644
--- a/engines/hdb/map-loader.h
+++ b/engines/hdb/map-loader.h
@@ -114,6 +114,16 @@ public:
_mapExplosions[y * _width + x] = value;
}
+ bool laserBeamExist(int x, int y) {
+ return _mapLaserBeams[y * _width + x];
+ }
+ void setLaserBeam(int x, int y, int value) {
+ _mapLaserBeams[y * _width + x] = value;
+ }
+ void clearLaserBeams() {
+ memset(_mapLaserBeams, 0, _width * _height);
+ }
+
uint16 _width, _height;
int _mapX, _mapY; // Coordinates of Map
int _mapTileX, _mapTileY; // Tile Coordinates of Map