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


Public Member Functions | |
| CoinView (const std::shared_ptr< logic::CoinModel > &model) | |
| CoinView renders fruit. | |
| 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. | |
| virtual void | render () |
| Determines what needs to happen to sprites when they should be rendered. | |
| 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 |
CoinView renders fruit.
| model | Reference model |