From 11e77a9d65972c8e59aefd72419dfcf9036e9f6a Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 23 Sep 2014 00:13:05 +0200 Subject: Allow player movement --- src/model/Map.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/model/Map.hpp') diff --git a/src/model/Map.hpp b/src/model/Map.hpp index e01d9c4..5d6ba01 100644 --- a/src/model/Map.hpp +++ b/src/model/Map.hpp @@ -46,6 +46,7 @@ private: size_t width, height; std::unique_ptr tiles; + std::shared_ptr playerEntity; mutable std::deque> entities; @@ -66,6 +67,10 @@ public: return entities; } + Entity & getPlayerEntity() const { + return *playerEntity; + } + size_t getWidth() const { return width; } -- cgit v1.2.3