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 --- SetNeighborTileBehavior.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'SetNeighborTileBehavior.h') diff --git a/SetNeighborTileBehavior.h b/SetNeighborTileBehavior.h index 53bfbc0..c52edf3 100644 --- a/SetNeighborTileBehavior.h +++ b/SetNeighborTileBehavior.h @@ -1,6 +1,7 @@ #pragma once #include "TileBehavior.h" +#include "XY.h" class SetNeighborTileBehavior : public TileBehavior { friend class TileBehaviorFactory; @@ -13,7 +14,6 @@ public: static constexpr const char * type = "B"; private: - int dx = 0; - int dy = 0; + XY offset = { 0, 0 }; }; -- cgit v1.2.3