#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(); }