aboutsummaryrefslogtreecommitdiff
path: root/CycleCollisionMethodCommand.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-22 19:55:53 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-22 19:55:53 +0200
commit3e1b0eb968d90f1ba5163b220c4e39dd7fd1e51b (patch)
tree2f9dcb8b7ac085514913a1ad114a5275978f95fd /CycleCollisionMethodCommand.cpp
parent99d7d1695fec28208e19b34bc754dff5dd1e5642 (diff)
finish collision checking implementation
Diffstat (limited to 'CycleCollisionMethodCommand.cpp')
-rw-r--r--CycleCollisionMethodCommand.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/CycleCollisionMethodCommand.cpp b/CycleCollisionMethodCommand.cpp
new file mode 100644
index 0000000..cc7b7f0
--- /dev/null
+++ b/CycleCollisionMethodCommand.cpp
@@ -0,0 +1,9 @@
+#include "CycleCollisionMethodCommand.h"
+#include "Museum.h"
+
+CycleCollisionMethodCommand::CycleCollisionMethodCommand(Museum & m) : museum(m) { }
+
+void CycleCollisionMethodCommand::execute() {
+ this->museum.collision.cycle_method();
+}
+