4#include <unordered_map>
38 std::shared_ptr<logic::PacmanModel> pacman;
46 std::unordered_map<int, std::vector<sf::IntRect>> animations{};
49 sf::Sprite directionSprite;
std::shared_ptr< logic::EntityModel > model
Definition EntityView.h:46
EntityView(const std::shared_ptr< logic::EntityModel > &model, float frameDuration)
Definition EntityView.cpp:6
PacmanView(const std::shared_ptr< logic::PacmanModel > &model)
PacmanView renders & animates Pacman.
Definition PacmanView.cpp:8
void render() override
Renders the Pacman sprite and the Pacman direction indicator.
Definition PacmanView.cpp:89
void resized() override
Resizes the Pacman sprite.
Definition PacmanView.cpp:80
Events
Definition Observer.h:14