diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-18 15:48:14 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-18 15:48:14 +0200 |
commit | d8289105193707daede1a5b59137f18e20f20aeb (patch) | |
tree | 939908b9c4c6f7aaef8aa61ee2e04be3e85610b6 /ToggleMuseumPauseCommand.cpp | |
parent | 76e61d68bbf568ec0d7fc4632e52d4de5496b003 (diff) |
(2/2) rename
Diffstat (limited to 'ToggleMuseumPauseCommand.cpp')
-rw-r--r-- | ToggleMuseumPauseCommand.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ToggleMuseumPauseCommand.cpp b/ToggleMuseumPauseCommand.cpp new file mode 100644 index 0000000..57176af --- /dev/null +++ b/ToggleMuseumPauseCommand.cpp @@ -0,0 +1,13 @@ +#include "ToggleMuseumPauseCommand.h" +#include "Museum.h" + +void ToggleMuseumPauseCommand::set(bool paused) { + Museum & museum = this->get_museum(); + museum.set_pause(paused); +} + +void ToggleMuseumPauseCommand::toggle() { + Museum & museum = this->get_museum(); + museum.set_pause(!museum.get_pause()); +} + |