aboutsummaryrefslogtreecommitdiff
path: root/StepTileCommand.cpp
blob: ff5c6b2a3f4d1ffe2b26f95683b560804f172488 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#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();
}