From 76e61d68bbf568ec0d7fc4632e52d4de5496b003 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Fri, 18 Oct 2024 15:43:25 +0200 Subject: (1/2) rename --- Tile.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Tile.cpp') diff --git a/Tile.cpp b/Tile.cpp index a891f15..f4fa623 100644 --- a/Tile.cpp +++ b/Tile.cpp @@ -1,8 +1,8 @@ #include #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() { -- cgit v1.2.3