diff options
Diffstat (limited to 'Tile.cpp')
-rw-r--r-- | Tile.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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(); } |