aboutsummaryrefslogtreecommitdiff
path: root/ControlBooleanCommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'ControlBooleanCommand.h')
-rw-r--r--ControlBooleanCommand.h18
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;
+};
+