diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-23 14:36:41 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-23 14:36:41 +0200 |
commit | 64028952ceb17f97ded08f1ab7ec0b06c41e2b87 (patch) | |
tree | f792377f93ff30a41a0c559c67aa874a022d4763 /PathfindingContext.h | |
parent | e522f2a36ee00a3e0890adb2c34bfc8431711265 (diff) |
add pathfinding start/end selection
Diffstat (limited to 'PathfindingContext.h')
-rw-r--r-- | PathfindingContext.h | 25 |
1 files changed, 25 insertions, 0 deletions
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 <utility> + +class Museum; + +class PathfindingContext { +public: + PathfindingContext(Museum &); + +public: + void set_start(const std::pair<int, int> & point); + const std::pair<int, int> & get_start() { return this->start_point; } + void set_end(const std::pair<int, int> & point); + const std::pair<int, int> & get_end() { return this->end_point; } + bool valid_point(const std::pair<int, int> & point); + +private: + std::pair<int, int> start_point = { -1, -1 }; + std::pair<int, int> end_point = { -1, -1 }; + +private: + Museum & museum; +}; + |