diff options
author | Nipun Garg | 2019-07-31 11:01:08 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:30 +0200 |
commit | a9e65176a15d17ad68c68392614e7a5ed7382e5d (patch) | |
tree | f4c2ecb695f644236e838a63ecf4007dcd1278de /engines/hdb/map.h | |
parent | 0fb3ad7ba05983fe64cc5f64294d58fa394935d1 (diff) | |
download | scummvm-rg350-a9e65176a15d17ad68c68392614e7a5ed7382e5d.tar.gz scummvm-rg350-a9e65176a15d17ad68c68392614e7a5ed7382e5d.tar.bz2 scummvm-rg350-a9e65176a15d17ad68c68392614e7a5ed7382e5d.zip |
HDB: Add more Platform-specific Constants
Diffstat (limited to 'engines/hdb/map.h')
-rw-r--r-- | engines/hdb/map.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/engines/hdb/map.h b/engines/hdb/map.h index 89b9b86e18..8341985287 100644 --- a/engines/hdb/map.h +++ b/engines/hdb/map.h @@ -26,12 +26,8 @@ namespace HDB { enum { - kScreenXTiles = 17, - kScreenYTiles = 16, - kScreenTileWidth = 16, - kScreenTileHeight = 16, kMaxGratings = 250, - kMaxForegrounds = 250 + kMaxForegrounds = 250, }; struct MSMIcon { @@ -90,11 +86,7 @@ public: return _mapLoaded; } - bool onScreen(int x, int y) { - if ((x >= _mapX / kTileWidth) && (x < (_mapX / kTileWidth) + kScreenXTiles) && (y >= _mapY / kTileHeight) && (y < (_mapY / kTileHeight) + kScreenYTiles)) - return true; - return false; - } + bool onScreen(int x, int y); int mapPixelWidth() { return _width * kTileWidth; } @@ -146,6 +138,12 @@ public: memset(_mapLaserBeams, 0, _width * _height); } + // Platform-specific Constants; + int _screenXTiles; + int _screenYTiles; + int _screenTileWidth; + int _screenTileHeight; + uint16 _width, _height; int _mapX, _mapY; // Coordinates of Map int _mapTileX, _mapTileY; // Tile Coordinates of Map |