#include "StepTileCommand.h" #include "Canvas.h" using namespace std; StepTileCommand::StepTileCommand(Canvas & c, const XY & tile) : canvas(c), tile_pos(tile) { } void StepTileCommand::execute() { Tile & tile = this->canvas.get_tile(this->tile_pos); tile.behavior->step(nullptr); tile.update(); }