aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/map.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/hdb/map.h')
-rw-r--r--engines/hdb/map.h18
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