aboutsummaryrefslogtreecommitdiff
path: root/Tile.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-23 19:16:19 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-23 19:16:19 +0200
commit1e0a52b03fe655d7073ef20703dbb2e7646f74d3 (patch)
treef1709c2e9565d78c791653e71e6a4b26b3138423 /Tile.h
parent277157b3e06b2deeacbdbc8bf6190de19f88169d (diff)
add XY struct for 2d points and offsets
Diffstat (limited to 'Tile.h')
-rw-r--r--Tile.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tile.h b/Tile.h
index ccf8d3b..7e44b09 100644
--- a/Tile.h
+++ b/Tile.h
@@ -5,6 +5,7 @@
#include "TileData.h"
#include "Color.h"
#include "TileBehavior.h"
+#include "XY.h"
class Museum;
@@ -21,7 +22,7 @@ public:
void set_data(TileData & data);
void set_type(const std::string & type);
void update();
- Tile * get_neighbor(int dx, int dy);
+ Tile * get_neighbor(const XY & offset);
private:
Museum & museum;