diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-25 13:02:38 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-25 13:02:38 +0200 |
commit | 8cf389aaf748c77aecda0b3a3773c45053b0f231 (patch) | |
tree | 91268879710d6ae2868e548d3f44c664a19443d8 /SetPathfindingEndPointCommand.cpp | |
parent | da669db4f083194bc78358041c5d9929e103ac9f (diff) |
implement all ALGA features
Diffstat (limited to 'SetPathfindingEndPointCommand.cpp')
-rw-r--r-- | SetPathfindingEndPointCommand.cpp | 11 |
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); +} + |