diff options
Diffstat (limited to 'src/view/MapView.hpp')
-rw-r--r-- | src/view/MapView.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/view/MapView.hpp b/src/view/MapView.hpp index e764297..e128a93 100644 --- a/src/view/MapView.hpp +++ b/src/view/MapView.hpp @@ -44,7 +44,7 @@ private: std::shared_ptr<const Model::Map> map; SDL_Texture *tiles; - std::map<std::string, SDL_Texture *> entities; + std::map<std::string, SDL_Texture *> entitySprites; int getTileSize() { return 32; @@ -55,7 +55,10 @@ public: const std::shared_ptr<const Model::Map> &map0); ~MapView(); - void render(float centerX, float centerY, uint64_t time); + void updateEntities(const std::vector<std::unique_ptr<Model::Entity>> &entities); + void clearEntities(); + + void render(const std::vector<std::unique_ptr<Model::Entity>> &entities, Model::Position center, uint64_t time); }; } |