diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-21 17:54:56 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-21 17:54:56 +0200 |
commit | 10ce9f45b9551dc103272c2b2374db1c1e3b8bcb (patch) | |
tree | 4fba15ce11c42dbfadca5cf6ff7a4c0b774ff507 /ToggleMuseumPauseCommand.h | |
parent | 90652f512e9621e0dfac497439c7c80bf113d9d5 (diff) |
add ControlBooleanCommand
Diffstat (limited to 'ToggleMuseumPauseCommand.h')
-rw-r--r-- | ToggleMuseumPauseCommand.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/ToggleMuseumPauseCommand.h b/ToggleMuseumPauseCommand.h index 40e0b24..0bfb27b 100644 --- a/ToggleMuseumPauseCommand.h +++ b/ToggleMuseumPauseCommand.h @@ -1,20 +1,12 @@ #pragma once -#include "Command.h" +#include "ControlBooleanCommand.h" class Museum; -class ToggleMuseumPauseCommand : public Command { +class ToggleMuseumPauseCommand : public ControlBooleanCommand { public: ToggleMuseumPauseCommand(Museum & m); ToggleMuseumPauseCommand(Museum & m, bool set); - -public: - virtual void execute(); - -private: - Museum & museum; - bool toggle = true; - bool value; }; |