aboutsummaryrefslogtreecommitdiff
path: root/Tile.h
diff options
context:
space:
mode:
Diffstat (limited to 'Tile.h')
-rw-r--r--Tile.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/Tile.h b/Tile.h
index 538a857..dc0b375 100644
--- a/Tile.h
+++ b/Tile.h
@@ -1,8 +1,10 @@
#pragma once
+#include <memory>
+
#include "TileData.h"
-#include "TileBehavior.h"
#include "Color.h"
+#include "TileBehaviorStrategy.h"
class Tile {
public:
@@ -12,8 +14,7 @@ public:
public:
TileData data;
Color color;
-private:
- TileBehavior behavior;
+ std::unique_ptr<TileBehaviorStrategy> behavior = nullptr;
public:
void update();