aboutsummaryrefslogtreecommitdiff
path: root/SetPathfindingEndPointCommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'SetPathfindingEndPointCommand.cpp')
-rw-r--r--SetPathfindingEndPointCommand.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/SetPathfindingEndPointCommand.cpp b/SetPathfindingEndPointCommand.cpp
new file mode 100644
index 0000000..c910a26
--- /dev/null
+++ b/SetPathfindingEndPointCommand.cpp
@@ -0,0 +1,11 @@
+#include "SetPathfindingEndPointCommand.h"
+#include "Museum.h"
+
+SetPathfindingEndPointCommand::SetPathfindingEndPointCommand(Museum & m, const XY & point) : museum(m) {
+ this->point = point;
+}
+
+void SetPathfindingEndPointCommand::execute() {
+ this->museum.pathfinding.set_end(this->point);
+}
+