diff options
Diffstat (limited to 'Tile.cpp')
-rw-r--r-- | Tile.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,8 +1,8 @@ #include <cstdio> #include "Tile.h" -#include "TileAppearance.h" -#include "TileBehavior.h" +#include "TileColorFactory.h" +#include "TileBehaviorFactory.h" #include "Museum.h" using namespace std; @@ -18,8 +18,8 @@ void Tile::set_type(const string & type) { void Tile::set_data(TileData & data) { this->data = data; - this->color = TileAppearance::get_color(this->data.type); - this->behavior = TileBehavior::get_strategy(this->data.type).clone(this->museum); + this->color = TileColorFactory::get_color(this->data.type); + this->behavior = TileBehaviorFactory::get_strategy(this->data.type).clone(this->museum); } void Tile::update() { |