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


Public Member Functions | |
| PacmanView (const std::shared_ptr< logic::PacmanModel > &model) | |
| PacmanView renders & animates Pacman. | |
| void | resized () override |
| Resizes the Pacman sprite. | |
| void | render () override |
| Renders the Pacman sprite and the Pacman direction indicator. | |
| 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. | |
| 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 |
PacmanView renders & animates Pacman.
| model | Reference Model |
|
overridevirtual |
Renders the Pacman sprite and the Pacman direction indicator.
Reimplemented from EntityView.
|
overridevirtual |
Resizes the Pacman sprite.
Reimplemented from EntityView.