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 --- ViewController.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ViewController.h') diff --git a/ViewController.h b/ViewController.h index f05d62b..d50dfb1 100644 --- a/ViewController.h +++ b/ViewController.h @@ -7,6 +7,7 @@ #include "KeyboardCode.h" #include "MouseCode.h" #include "Rectangle.h" +#include "XY.h" class View; class Museum; @@ -32,7 +33,7 @@ private: void update_quadtree_recursive(QuadTreeCollisionChecker * tree); private: - void draw_pathfinding_dot(std::pair, const Color &); + void draw_pathfinding_dot(const XY &, const Color &); Rectangle center(Rectangle); private: @@ -52,6 +53,6 @@ private: unsigned int pathfinding_size = scale - 4; private: - std::pair mouse_pos = { 0, 0 }; + XY mouse_pos; }; -- cgit v1.2.3