#include "StepTileCommand.h" #include "Museum.h" void StepTileCommand::execute(unsigned int x, unsigned int y) { Museum & museum = this->get_museum(); if (x >= museum.canvas.data.columns) return; if (y >= museum.canvas.data.rows) return; Tile & tile = museum.canvas.get_tile(x, y); tile.step(nullptr); tile.update(); }