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 /SetPathfindingStartPointCommand.cpp | |
parent | da669db4f083194bc78358041c5d9929e103ac9f (diff) |
implement all ALGA features
Diffstat (limited to 'SetPathfindingStartPointCommand.cpp')
-rw-r--r-- | SetPathfindingStartPointCommand.cpp | 11 |
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); +} + |