aboutsummaryrefslogtreecommitdiff
path: root/StepTileCommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'StepTileCommand.h')
-rw-r--r--StepTileCommand.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/StepTileCommand.h b/StepTileCommand.h
index ce9dccd..24d0b36 100644
--- a/StepTileCommand.h
+++ b/StepTileCommand.h
@@ -1,11 +1,21 @@
#pragma once
+#include <utility>
+
#include "Command.h"
+class Canvas;
+
class StepTileCommand : public Command {
- using Command::Command;
+public:
+ StepTileCommand(Canvas & c, std::pair<unsigned int, unsigned int> tile);
public:
- virtual void execute(unsigned int x, unsigned int y);
+ virtual void execute();
+
+private:
+ Canvas & canvas;
+ unsigned int x;
+ unsigned int y;
};