diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-18 16:37:02 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-18 16:37:02 +0200 |
commit | 4cb7ca42003c177e3acc80075d7594e555966106 (patch) | |
tree | d2f5836d70a1fa2dc1d18c4fb59f1bf1f2f91f5a /TimeTravelCommand.h | |
parent | d8289105193707daede1a5b59137f18e20f20aeb (diff) |
fix command design pattern
Diffstat (limited to 'TimeTravelCommand.h')
-rw-r--r-- | TimeTravelCommand.h | 12 |
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; }; |