diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-18 16:37:02 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-18 16:37:02 +0200 |
commit | 4cb7ca42003c177e3acc80075d7594e555966106 (patch) | |
tree | d2f5836d70a1fa2dc1d18c4fb59f1bf1f2f91f5a /StepTileCommand.h | |
parent | d8289105193707daede1a5b59137f18e20f20aeb (diff) |
fix command design pattern
Diffstat (limited to 'StepTileCommand.h')
-rw-r--r-- | StepTileCommand.h | 14 |
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; }; |