aboutsummaryrefslogtreecommitdiff
path: root/PathfindingContext.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-25 13:02:38 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-25 13:02:38 +0200
commit8cf389aaf748c77aecda0b3a3773c45053b0f231 (patch)
tree91268879710d6ae2868e548d3f44c664a19443d8 /PathfindingContext.h
parentda669db4f083194bc78358041c5d9929e103ac9f (diff)
implement all ALGA features
Diffstat (limited to 'PathfindingContext.h')
-rw-r--r--PathfindingContext.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/PathfindingContext.h b/PathfindingContext.h
index bb6fc23..c2c591c 100644
--- a/PathfindingContext.h
+++ b/PathfindingContext.h
@@ -12,16 +12,16 @@ class Museum;
class PathfindingContext {
public:
PathfindingContext(Museum &);
+ void update();
public:
void set_start(const XY & point);
const XY & get_start() { return this->start_point; }
void set_end(const XY & point);
const XY & get_end() { return this->end_point; }
+public:
bool empty_point(const XY & point);
- void update();
-
public:
void register_weight(const std::string & type, unsigned int weight);
unsigned int get_weight(const std::string & type);
@@ -33,11 +33,14 @@ private:
XY end_point = { -1, -1 };
public:
- Pathfinder & get_solver();
+ Pathfinder & get_solver();
void cycle_solver();
private:
- std::vector<std::unique_ptr<Pathfinder>> solvers;
- size_t solver_index = 0;
+ std::vector<std::unique_ptr<Pathfinder>> solvers;
+ size_t solver_index = 0;
+
+public:
+ bool has_collision = false;
private:
Museum & museum;