diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-18 15:43:25 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-18 15:43:25 +0200 |
commit | 76e61d68bbf568ec0d7fc4632e52d4de5496b003 (patch) | |
tree | 92a2dc9b12a542456bdc154f44deb34925883210 /Tile.cpp | |
parent | 3f63576819151ff15237a9b4f0651c538cfef067 (diff) |
(1/2) rename
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() { |