aboutsummaryrefslogtreecommitdiff
path: root/SetPathfindingStartPointCommand.cpp
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 /SetPathfindingStartPointCommand.cpp
parentda669db4f083194bc78358041c5d9929e103ac9f (diff)
implement all ALGA features
Diffstat (limited to 'SetPathfindingStartPointCommand.cpp')
-rw-r--r--SetPathfindingStartPointCommand.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/SetPathfindingStartPointCommand.cpp b/SetPathfindingStartPointCommand.cpp
new file mode 100644
index 0000000..9bee4ea
--- /dev/null
+++ b/SetPathfindingStartPointCommand.cpp
@@ -0,0 +1,11 @@
+#include "SetPathfindingStartPointCommand.h"
+#include "Museum.h"
+
+SetPathfindingStartPointCommand::SetPathfindingStartPointCommand(Museum & m, const XY & point) : museum(m) {
+ this->point = point;
+}
+
+void SetPathfindingStartPointCommand::execute() {
+ this->museum.pathfinding.set_start(this->point);
+}
+