blob: fd3342346bdb4fe12fc654d38a75f44368de7c55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <cstdio>
#include "Tile.h"
#include "TileAppearance.h"
Tile::Tile() {
this->data = {};
this->update();
}
Tile::Tile(TileData data) {
this->data = data;
this->update();
}
void Tile::update() {
this->color = TileAppearance::get_color(this->data.type);
}
|