diff options
author | Nipun Garg | 2019-06-25 02:06:32 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:59 +0200 |
commit | ca15646569b48f26a29707dbcdf186371377ec00 (patch) | |
tree | 20548bbffb61e7d7c5ac6f7d2cf6a34de46fa6cc /engines/hdb | |
parent | 88bab8cc79ab5f13cec7124564224773b2026ef6 (diff) | |
download | scummvm-rg350-ca15646569b48f26a29707dbcdf186371377ec00.tar.gz scummvm-rg350-ca15646569b48f26a29707dbcdf186371377ec00.tar.bz2 scummvm-rg350-ca15646569b48f26a29707dbcdf186371377ec00.zip |
HDB: Add getter-setter function for _mapExplosions
Diffstat (limited to 'engines/hdb')
-rw-r--r-- | engines/hdb/map-loader.h | 10 |
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 |