blob: ccf8d3bc03315d1528e1f3f7c2a91aa234e040b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#pragma once
#include <memory>
#include "TileData.h"
#include "Color.h"
#include "TileBehavior.h"
class Museum;
class Tile {
public:
Tile(Museum & museum, TileData & data);
public:
TileData data;
Color color;
std::unique_ptr<TileBehavior> behavior = nullptr;
public:
void set_data(TileData & data);
void set_type(const std::string & type);
void update();
Tile * get_neighbor(int dx, int dy);
private:
Museum & museum;
};
|