aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/map.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/map.h')
-rw-r--r--engines/gob/map.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/engines/gob/map.h b/engines/gob/map.h
index f1cd91d6d0..a04fe43283 100644
--- a/engines/gob/map.h
+++ b/engines/gob/map.h
@@ -57,18 +57,18 @@ enum Direction {
kDirSE = 0x5100
};
+struct WayPoint {
+ int16 x;
+ int16 y;
+ int16 notWalkable;
+};
+
+
class Map {
public:
#include "common/pack-start.h" // START STRUCT PACKING
- struct Point {
- int16 x;
- int16 y;
- int16 notWalkable;
- } PACKED_STRUCT;
-
#define szMap_ItemPos 3
-
struct ItemPos {
int8 x;
int8 y;
@@ -91,9 +91,6 @@ public:
bool _mapUnknownBool;
- int16 _wayPointCount;
- Point *_wayPoints;
-
int16 _nearestWayPoint;
int16 _nearestDest;
@@ -113,6 +110,8 @@ public:
int8 getPass(int x, int y, int width = -1) const;
void setPass(int x, int y, int8 pass, int width = -1);
+ const WayPoint &getWayPoint(int n) const;
+
void findNearestWalkable(int16 &gobDestX, int16 &gobDestY,
int16 mouseX, int16 mouseY);
@@ -143,6 +142,9 @@ protected:
int16 _passWidth;
int8 *_passMap; // [y * _mapWidth + x], getPass(x, y);
+ int16 _wayPointCount;
+ WayPoint *_wayPoints;
+
int16 findNearestWayPoint(int16 x, int16 y);
private: