aboutsummaryrefslogtreecommitdiff
path: root/Tile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tile.cpp')
-rw-r--r--Tile.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tile.cpp b/Tile.cpp
index fd33423..cb7b89b 100644
--- a/Tile.cpp
+++ b/Tile.cpp
@@ -2,6 +2,7 @@
#include "Tile.h"
#include "TileAppearance.h"
+#include "TileBehavior.h"
Tile::Tile() {
this->data = {};
@@ -15,5 +16,6 @@ Tile::Tile(TileData data) {
void Tile::update() {
this->color = TileAppearance::get_color(this->data.type);
+ this->behavior = TileBehavior::get_strategy(this->data.type).clone();
}