|
Pacman Torben Petré
|
#include <GhostView.h>


Public Member Functions | |
| GhostView (const std::shared_ptr< logic::GhostModel > &model, int spriteY) | |
| GhostView renders & animates Ghosts. | |
| void | render () override |
| Renders the Ghost sprite. | |
| Public Member Functions inherited from EntityView | |
| EntityView (const std::shared_ptr< logic::EntityModel > &model, float frameDuration) | |
| bool | shouldDelete () const |
| size_t | getFrameIndex (float dt, size_t frameLimit) |
| Calculates the current frameIndex based on the elapsed time. | |
| virtual void | resized () |
| Determines how the sprites should react when the Screen dimension changes. | |
| Public Member Functions inherited from logic::Observer | |
| virtual | ~Observer ()=default |
Additional Inherited Members | |
| Protected Attributes inherited from EntityView | |
| std::shared_ptr< logic::EntityModel > | model |
| sf::Sprite | sprite |
| bool | markedForDeletion = false |
| float | frameDuration |
| float | elapsedTime = 0 |
| size_t | frameIndex = 0 |
|
explicit |
GhostView renders & animates Ghosts.
| model | Reference model |
| spriteY | Used to differentiate between Ghost sprites (Blinky, Pinky, Inky, Clyde) |
|
overridevirtual |
Renders the Ghost sprite.
Reimplemented from EntityView.