aboutsummaryrefslogtreecommitdiff
path: root/MuseumPauseCommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'MuseumPauseCommand.cpp')
-rw-r--r--MuseumPauseCommand.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/MuseumPauseCommand.cpp b/MuseumPauseCommand.cpp
new file mode 100644
index 0000000..e3d8556
--- /dev/null
+++ b/MuseumPauseCommand.cpp
@@ -0,0 +1,13 @@
+#include "MuseumPauseCommand.h"
+#include "Museum.h"
+
+void MuseumPauseCommand::set(bool paused) {
+ Museum & museum = this->get_museum();
+ museum.set_pause(paused);
+}
+
+void MuseumPauseCommand::toggle() {
+ Museum & museum = this->get_museum();
+ museum.set_pause(!museum.get_pause());
+}
+