aboutsummaryrefslogtreecommitdiff
path: root/CyclePathfindingMethodCommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CyclePathfindingMethodCommand.cpp')
-rw-r--r--CyclePathfindingMethodCommand.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/CyclePathfindingMethodCommand.cpp b/CyclePathfindingMethodCommand.cpp
new file mode 100644
index 0000000..562a1ab
--- /dev/null
+++ b/CyclePathfindingMethodCommand.cpp
@@ -0,0 +1,9 @@
+#include "CyclePathfindingMethodCommand.h"
+#include "Museum.h"
+
+CyclePathfindingMethodCommand::CyclePathfindingMethodCommand(Museum & m) : museum(m) { }
+
+void CyclePathfindingMethodCommand::execute() {
+ this->museum.pathfinding.cycle_solver();
+}
+