blob: 44320c97c7268d87a82992f9685cf53259b615c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "TimeTravelCommand.h"
#include "Museum.h"
TimeTravelCommand::TimeTravelCommand(Museum & m, bool forwards) : museum(m) {
this->forwards = forwards;
}
void TimeTravelCommand::execute() {
if (this->forwards)
this->museum.skip_forward();
else
this->museum.skip_backward();
}
|