aboutsummaryrefslogtreecommitdiff
path: root/Tile.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-18 15:43:25 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-18 15:43:25 +0200
commit76e61d68bbf568ec0d7fc4632e52d4de5496b003 (patch)
tree92a2dc9b12a542456bdc154f44deb34925883210 /Tile.cpp
parent3f63576819151ff15237a9b4f0651c538cfef067 (diff)
(1/2) rename
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() {