From 1e0a52b03fe655d7073ef20703dbb2e7646f74d3 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Wed, 23 Oct 2024 19:16:19 +0200 Subject: add XY struct for 2d points and offsets --- Tile.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Tile.h') 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; -- cgit v1.2.3