aboutsummaryrefslogtreecommitdiff
path: root/StepTileCommand.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 /StepTileCommand.h
parent277157b3e06b2deeacbdbc8bf6190de19f88169d (diff)
add XY struct for 2d points and offsets
Diffstat (limited to 'StepTileCommand.h')
-rw-r--r--StepTileCommand.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/StepTileCommand.h b/StepTileCommand.h
index 24d0b36..c9a2d8b 100644
--- a/StepTileCommand.h
+++ b/StepTileCommand.h
@@ -1,21 +1,19 @@
#pragma once
-#include <utility>
-
#include "Command.h"
+#include "XY.h"
class Canvas;
class StepTileCommand : public Command {
public:
- StepTileCommand(Canvas & c, std::pair<unsigned int, unsigned int> tile);
+ StepTileCommand(Canvas & c, const XY & tile);
public:
virtual void execute();
private:
Canvas & canvas;
- unsigned int x;
- unsigned int y;
+ XY tile_pos;
};