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 --- StepTileCommand.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'StepTileCommand.h') 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 - #include "Command.h" +#include "XY.h" class Canvas; class StepTileCommand : public Command { public: - StepTileCommand(Canvas & c, std::pair tile); + StepTileCommand(Canvas & c, const XY & tile); public: virtual void execute(); private: Canvas & canvas; - unsigned int x; - unsigned int y; + XY tile_pos; }; -- cgit v1.2.3