|
persona-3-dual
A DS demake of Persona 3
|
Plays groups of animations: each step waits until all in the group finish. More...
#include <UISequenceAnimation.hpp>


Public Types | |
| using | Group = etl::vector<std::shared_ptr<UIAnimation>, MAX_ANIMATIONS_PER_STEP> |
Public Member Functions | |
| void | appendGroup (std::shared_ptr< UIAnimation > anim) |
| void | joinGroup (std::shared_ptr< UIAnimation > anim) |
| void | reverse () override |
| void | reset () override |
| Resets runtime state so the animation can play again (used by Loop). | |
| Public Member Functions inherited from UIAnimation | |
| virtual | ~UIAnimation ()=default |
| UIAnimation (const UIAnimation &)=delete | |
| UIAnimation & | operator= (const UIAnimation &)=delete |
| UIAnimation (UIAnimation &&)=delete | |
| UIAnimation & | operator= (UIAnimation &&)=delete |
| bool | tick (ae::q20_12_t dt) |
Advances the animation by dt seconds (Q20.12). | |
| void | pause () |
| void | resume () |
| void | cancel () |
| bool | isCancelled () const |
| bool | isPaused () const |
| bool | isDone () const |
| void | setRepeat (UIRepeatMode mode, int count=-1) |
Static Public Attributes | |
| static constexpr std::size_t | MAX_STEPS = 8 |
| static constexpr std::size_t | MAX_ANIMATIONS_PER_STEP = 4 |
Protected Member Functions | |
| bool | onUpdate (ae::q20_12_t dt) override |
| Per-frame update. | |
| Protected Member Functions inherited from UIAnimation | |
| UIAnimation ()=default | |
| bool | applyRepeat () |
| Applies repeat policy after a completed cycle. | |
Private Attributes | |
| etl::vector< Group, MAX_STEPS > | steps |
| int | currentStep = 0 |
Additional Inherited Members | |
| Protected Attributes inherited from UIAnimation | |
| bool | paused = false |
| bool | cancelled = false |
| bool | done = false |
| ae::q20_12_t | elapsed {0} |
| UIRepeatMode | repeatMode = UIRepeatMode::Once |
| int | remainingRepeats = -1 |
| -1 = infinite when mode is not Once. | |
Plays groups of animations: each step waits until all in the group finish.
Definition at line 22 of file UISequenceAnimation.hpp.
| using UISequenceAnimation::Group = etl::vector<std::shared_ptr<UIAnimation>, MAX_ANIMATIONS_PER_STEP> |
Definition at line 27 of file UISequenceAnimation.hpp.
|
inline |
|
inline |
|
inlineoverrideprotectedvirtual |
Per-frame update.
Implements UIAnimation.
Definition at line 77 of file UISequenceAnimation.hpp.
|
inlineoverridevirtual |
Resets runtime state so the animation can play again (used by Loop).
Reimplemented from UIAnimation.
Definition at line 60 of file UISequenceAnimation.hpp.

|
inlineoverridevirtual |
Reimplemented from UIAnimation.
Definition at line 55 of file UISequenceAnimation.hpp.
|
private |
Definition at line 103 of file UISequenceAnimation.hpp.
|
staticconstexpr |
Definition at line 26 of file UISequenceAnimation.hpp.
|
staticconstexpr |
Definition at line 25 of file UISequenceAnimation.hpp.
Definition at line 102 of file UISequenceAnimation.hpp.