aboutsummaryrefslogtreecommitdiff
path: root/PathfindingContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'PathfindingContext.h')
-rw-r--r--PathfindingContext.h25
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;
+};
+