summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-04-04 23:14:37 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-04-04 23:14:37 (GMT)
commit326cd32e2c9e3ec9bac54f5bb952928680c93749 (patch)
tree6992a6810897fdcdc9cce9cc2c7e2b79bf0e6011 /Swift/Controllers/UIEvents
parenta9173b68bf4a44325ec55843017d65d04a7f0c75 (diff)
downloadswift-326cd32e2c9e3ec9bac54f5bb952928680c93749.zip
swift-326cd32e2c9e3ec9bac54f5bb952928680c93749.tar.bz2
Allow sounds to be toggled.
Doesn't persist option yet. Resolves: #192
Diffstat (limited to 'Swift/Controllers/UIEvents')
-rw-r--r--Swift/Controllers/UIEvents/ToggleSoundsUIEvent.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/Swift/Controllers/UIEvents/ToggleSoundsUIEvent.h b/Swift/Controllers/UIEvents/ToggleSoundsUIEvent.h
new file mode 100644
index 0000000..826ee09
--- /dev/null
+++ b/Swift/Controllers/UIEvents/ToggleSoundsUIEvent.h
@@ -0,0 +1,13 @@
+#pragma once
+
+#include "Swift/Controllers/UIEvents/UIEvent.h"
+
+namespace Swift {
+ class ToggleSoundsUIEvent : public UIEvent {
+ public:
+ ToggleSoundsUIEvent(bool enable) : enabled_(enable) {};
+ bool getEnabled() {return enabled_;};
+ private:
+ bool enabled_;
+ };
+}