aboutsummaryrefslogtreecommitdiff
path: root/Canvas.h
diff options
context:
space:
mode:
Diffstat (limited to 'Canvas.h')
-rw-r--r--Canvas.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Canvas.h b/Canvas.h
index 4c959f6..59e8f7e 100644
--- a/Canvas.h
+++ b/Canvas.h
@@ -7,14 +7,19 @@
class Canvas {
public:
+ Canvas() = default;
+ virtual ~Canvas();
+
+public:
virtual Tile & get_tile(unsigned x, unsigned y);
virtual void set_tile(unsigned x, unsigned y, TileData data);
public:
CanvasData data;
+ void update();
private:
- std::vector<Tile> tiles = {};
+ std::vector<Tile *> tiles;
private:
size_t pos_to_index(unsigned x, unsigned y);