aboutsummaryrefslogtreecommitdiff
path: root/Tile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tile.cpp')
-rw-r--r--Tile.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Tile.cpp b/Tile.cpp
index a891f15..f4fa623 100644
--- a/Tile.cpp
+++ b/Tile.cpp
@@ -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() {