From 8cf389aaf748c77aecda0b3a3773c45053b0f231 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Fri, 25 Oct 2024 13:02:38 +0200 Subject: implement all ALGA features --- SetPathfindingEndPointCommand.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 SetPathfindingEndPointCommand.cpp (limited to 'SetPathfindingEndPointCommand.cpp') 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); +} + -- cgit v1.2.3