persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
UIDelayAnimation Class Reference

Holds for durationMs milliseconds (converted to Q20.12 seconds). More...

#include <UIDelayAnimation.hpp>

Inheritance diagram for UIDelayAnimation:
Collaboration diagram for UIDelayAnimation:

Public Member Functions

 UIDelayAnimation (int durationMs)
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).
virtual void reverse ()
void pause ()
void resume ()
void cancel ()
bool isCancelled () const
bool isPaused () const
bool isDone () const
void setRepeat (UIRepeatMode mode, int count=-1)

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

ae::q20_12_t duration {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.

Detailed Description

Holds for durationMs milliseconds (converted to Q20.12 seconds).

Definition at line 15 of file UIDelayAnimation.hpp.

Constructor & Destructor Documentation

◆ UIDelayAnimation()

UIDelayAnimation::UIDelayAnimation ( int durationMs)
inlineexplicit

Definition at line 18 of file UIDelayAnimation.hpp.

Member Function Documentation

◆ onUpdate()

bool UIDelayAnimation::onUpdate ( ae::q20_12_t dt)
inlineoverrideprotectedvirtual

Per-frame update.

Returns
true when this cycle has completed.

Implements UIAnimation.

Definition at line 29 of file UIDelayAnimation.hpp.

◆ reset()

void UIDelayAnimation::reset ( )
inlineoverridevirtual

Resets runtime state so the animation can play again (used by Loop).

Reimplemented from UIAnimation.

Definition at line 23 of file UIDelayAnimation.hpp.

Here is the call graph for this function:

Member Data Documentation

◆ duration

ae::q20_12_t UIDelayAnimation::duration {0}
private

Definition at line 36 of file UIDelayAnimation.hpp.


The documentation for this class was generated from the following file: