diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-09-23 00:13:05 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-09-23 00:13:05 +0200 |
commit | 11e77a9d65972c8e59aefd72419dfcf9036e9f6a (patch) | |
tree | 03288809e9a592849e881d6f3baae2eb41bee5cb /src/model/Map.hpp | |
parent | c9b41bc1022c75ac6da84f4fa503dd8231a96cf2 (diff) | |
download | rpgedit-11e77a9d65972c8e59aefd72419dfcf9036e9f6a.tar rpgedit-11e77a9d65972c8e59aefd72419dfcf9036e9f6a.zip |
Allow player movement
Diffstat (limited to 'src/model/Map.hpp')
-rw-r--r-- | src/model/Map.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
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<uint32_t[]> tiles; + std::shared_ptr<Entity> playerEntity; mutable std::deque<std::shared_ptr<Entity>> entities; @@ -66,6 +67,10 @@ public: return entities; } + Entity & getPlayerEntity() const { + return *playerEntity; + } + size_t getWidth() const { return width; } |