From fe0c3b733abf6eac5f4b5bc18f24f8a5cda1bfc4 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 22 Sep 2014 21:54:01 +0200 Subject: Render entities --- src/model/Map.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/model/Map.hpp') diff --git a/src/model/Map.hpp b/src/model/Map.hpp index 6d3ef0e..e01d9c4 100644 --- a/src/model/Map.hpp +++ b/src/model/Map.hpp @@ -27,10 +27,14 @@ #pragma once #include +#include #include #include #include +#include "Entity.hpp" + + namespace RPGEdit { namespace Model { @@ -42,6 +46,9 @@ private: size_t width, height; std::unique_ptr tiles; + mutable std::deque> entities; + + Map(size_t width0, size_t height0) : width(width0), height(height0), tiles(new uint32_t[width*height]) { } @@ -55,6 +62,10 @@ public: return tileset; } + std::deque> & getEntities() const { + return entities; + } + size_t getWidth() const { return width; } -- cgit v1.2.3