blob: beefd34c57570a2272c370b0b34415d0574821b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#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();
}
|