From ca15646569b48f26a29707dbcdf186371377ec00 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Tue, 25 Jun 2019 02:06:32 +0530 Subject: HDB: Add getter-setter function for _mapExplosions --- engines/hdb/map-loader.h | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- cgit v1.2.3