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 70e91d0..4807022 100644
--- a/Tile.h
+++ b/Tile.h
@@ -13,8 +13,8 @@ public:
Tile(Museum & museum, TileData data);
public:
- TileData data;
- Color color;
+ TileData data = { 0 };
+ Color color = { 0 };
std::unique_ptr<TileBehaviorStrategy> behavior = nullptr;
unsigned int x = 0;
@@ -23,7 +23,8 @@ public:
public:
void set_data(TileData data);
void update();
- void step();
+ void step(Artist &);
+ Tile * get_neighbor(int dx, int dy);
private:
Museum & museum;