|
stmm-games-doc
0.32.0
|
Public Member Functions | |
| virtual | ~ThemeAnimation () noexcept=default |
| virtual int32_t | getZ (int32_t nViewTick, int32_t nTotViewTicks) noexcept=0 |
| Get the z value at a view tick. More... | |
| virtual bool | isStarted (int32_t nViewTick, int32_t nTotViewTicks) noexcept=0 |
| Signals to the view that the theme animation can be started. More... | |
| virtual bool | isDone (int32_t nViewTick, int32_t nTotViewTicks) noexcept=0 |
| Signals to the view that the theme animation has finished and can be removed. More... | |
| virtual void | draw (int32_t nViewTick, int32_t nTotViewTicks, const Cairo::RefPtr< Cairo::Context > &refCc) noexcept=0 |
| Called by the view to draw the animation. More... | |
| virtual void | onRemoved () noexcept=0 |
| Called by view when animation is removed from the model. More... | |
|
virtualdefaultnoexcept |
|
pure virtualnoexcept |
Called by the view to draw the animation.
refCC points at the center of the animation.
| nViewTick | The view tick. Is >= 0 and < nTotViewTicks. |
| nTotViewTicks | The total number of view ticks for the game interval. Is > 0. |
| refCc | The drawing context. Is not null. |
|
pure virtualnoexcept |
Get the z value at a view tick.
| nViewTick | The view tick. Is >= 0 and < nTotViewTicks. |
| nTotViewTicks | The total number of view ticks for the game interval. Is > 0. |
|
pure virtualnoexcept |
Signals to the view that the theme animation has finished and can be removed.
If the returned value is true the implementation must also remove any reference to the LevelAnimation so that it can be recycled.
If the returned value is true the view won't call onRemoved().
| nViewTick | The view tick. Is >= 0 and < nTotViewTicks. |
| nTotViewTicks | The total number of view ticks for the game interval. Is > 0. |
|
pure virtualnoexcept |
Signals to the view that the theme animation can be started.
While animations are added during game ticks, the vier really starts to draw them at view tick granularity.
| nViewTick | The view tick. Is >= 0 and < nTotViewTicks. |
| nTotViewTicks | The total number of view ticks for the game interval. Is > 0. |
|
pure virtualnoexcept |
Called by view when animation is removed from the model.
The implementation must remove any reference to the LevelAnimation so that it can be recycled.
Isn't called if isDone() was called by the view returning true.
1.8.13