diff options
Diffstat (limited to 'Tile.cpp')
-rw-r--r-- | Tile.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -18,8 +18,10 @@ void Tile::set_type(const string & type) { void Tile::set_data(TileData & data) { this->data = data; - this->color = TileColorFactory::get_color(this->data.type); - this->behavior = TileBehaviorFactory(this->museum).create(this->data.type); + + Canvas & canvas = this->museum.canvas; + this->color = canvas.tile_color.get_color(this->data.type); + this->behavior = canvas.tile_behavior.create(this->data.type); } void Tile::update() { |