aboutsummaryrefslogtreecommitdiff
path: root/TileDecayCommand.cpp
blob: e986cc500b2b7428f551654a0098179beb2d6fb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "TileDecayCommand.h"
#include "Museum.h"

void TileDecayCommand::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();
}