From 64028952ceb17f97ded08f1ab7ec0b06c41e2b87 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Wed, 23 Oct 2024 14:36:41 +0200 Subject: add pathfinding start/end selection --- PathfindingContext.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 PathfindingContext.h (limited to 'PathfindingContext.h') diff --git a/PathfindingContext.h b/PathfindingContext.h new file mode 100644 index 0000000..ce46a55 --- /dev/null +++ b/PathfindingContext.h @@ -0,0 +1,25 @@ +#pragma once + +#include + +class Museum; + +class PathfindingContext { +public: + PathfindingContext(Museum &); + +public: + void set_start(const std::pair & point); + const std::pair & get_start() { return this->start_point; } + void set_end(const std::pair & point); + const std::pair & get_end() { return this->end_point; } + bool valid_point(const std::pair & point); + +private: + std::pair start_point = { -1, -1 }; + std::pair end_point = { -1, -1 }; + +private: + Museum & museum; +}; + -- cgit v1.2.3