diff options
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); +} + |