1#ifndef PACMAN_GHOSTVIEW_H
2#define PACMAN_GHOSTVIEW_H
4#include <unordered_map>
17 explicit GhostView(
const std::shared_ptr<logic::GhostModel> &
model,
int spriteY);
31 std::shared_ptr<logic::GhostModel> ghost;
33 std::unordered_map<int, std::vector<sf::IntRect>> animations{};
36 bool frightened =
false;
48 int animationOffset = 0;
std::shared_ptr< logic::EntityModel > model
Definition EntityView.h:46
EntityView(const std::shared_ptr< logic::EntityModel > &model, float frameDuration)
Definition EntityView.cpp:6
void render() override
Renders the Ghost sprite.
Definition GhostView.cpp:76
GhostView(const std::shared_ptr< logic::GhostModel > &model, int spriteY)
GhostView renders & animates Ghosts.
Definition GhostView.cpp:8
Events
Definition Observer.h:14