aboutsummaryrefslogtreecommitdiff
path: root/SetNeighborTileBehavior.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 /SetNeighborTileBehavior.h
parent277157b3e06b2deeacbdbc8bf6190de19f88169d (diff)
add XY struct for 2d points and offsets
Diffstat (limited to 'SetNeighborTileBehavior.h')
-rw-r--r--SetNeighborTileBehavior.h4
1 files changed, 2 insertions, 2 deletions
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 };
};