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 /ControlBooleanCommand.h | |
parent | 90652f512e9621e0dfac497439c7c80bf113d9d5 (diff) |
add ControlBooleanCommand
Diffstat (limited to 'ControlBooleanCommand.h')
-rw-r--r-- | ControlBooleanCommand.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ControlBooleanCommand.h b/ControlBooleanCommand.h new file mode 100644 index 0000000..2067e37 --- /dev/null +++ b/ControlBooleanCommand.h @@ -0,0 +1,18 @@ +#pragma once + +#include "Command.h" + +class ControlBooleanCommand : public Command { +public: + ControlBooleanCommand(bool & target); + ControlBooleanCommand(bool & target, bool set); + +public: + virtual void execute(); + +private: + bool toggle = true; + bool value; + bool & target; +}; + |