aboutsummaryrefslogtreecommitdiff
path: root/TimeTravelCommand.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-18 16:37:02 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-18 16:37:02 +0200
commit4cb7ca42003c177e3acc80075d7594e555966106 (patch)
treed2f5836d70a1fa2dc1d18c4fb59f1bf1f2f91f5a /TimeTravelCommand.h
parentd8289105193707daede1a5b59137f18e20f20aeb (diff)
fix command design pattern
Diffstat (limited to 'TimeTravelCommand.h')
-rw-r--r--TimeTravelCommand.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/TimeTravelCommand.h b/TimeTravelCommand.h
index 7803134..359e63e 100644
--- a/TimeTravelCommand.h
+++ b/TimeTravelCommand.h
@@ -2,11 +2,17 @@
#include "Command.h"
+class Museum;
+
class TimeTravelCommand : public Command {
- using Command::Command;
+public:
+ TimeTravelCommand(Museum & m, bool forwards = false);
public:
- virtual void forwards();
- virtual void backwards();
+ virtual void execute();
+
+private:
+ Museum & museum;
+ bool forwards;
};