aboutsummaryrefslogtreecommitdiff
path: root/TimeTravelCommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TimeTravelCommand.cpp')
-rw-r--r--TimeTravelCommand.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/TimeTravelCommand.cpp b/TimeTravelCommand.cpp
index 8a24234..34468c0 100644
--- a/TimeTravelCommand.cpp
+++ b/TimeTravelCommand.cpp
@@ -2,15 +2,10 @@
#include "Museum.h"
void TimeTravelCommand::forwards() {
- return this->execute(+this->default_offset);
+ this->get_museum().skip_forward();
}
void TimeTravelCommand::backwards() {
- return this->execute(-this->default_offset);
-}
-
-void TimeTravelCommand::execute(long offset) {
- Museum & museum = this->get_museum();
- museum.time_jump(offset);
+ this->get_museum().skip_backward();
}