diff options
Diffstat (limited to 'Canvas.h')
-rw-r--r-- | Canvas.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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); |