aboutsummaryrefslogtreecommitdiff
path: root/TimeTravelCommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TimeTravelCommand.cpp')
-rw-r--r--TimeTravelCommand.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/TimeTravelCommand.cpp b/TimeTravelCommand.cpp
new file mode 100644
index 0000000..c7dfc82
--- /dev/null
+++ b/TimeTravelCommand.cpp
@@ -0,0 +1,16 @@
+#include "TimeTravelCommand.h"
+#include "Museum.h"
+
+void TimeTravelCommand::forwards() {
+ return this->execute(+this->default_offset);
+}
+
+void TimeTravelCommand::backwards() {
+ return this->execute(-this->default_offset);
+}
+
+void TimeTravelCommand::execute(long offset) {
+ Museum & museum = this->get_museum();
+ // TODO
+}
+