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

ECS component that owns a UIAnimator for entity-scoped UI tweens. More...

#include <UIAnimationComponent.hpp>

Inheritance diagram for UIAnimationComponent:
Collaboration diagram for UIAnimationComponent:

Public Member Functions

void init () override
void update (ae::q20_12_t dt) override
void destroy () override
ae::ComponentTypeID getType () const override
template<typename T>
UIPropertyAnimationBuilder< T > animate (T &target)
 Starts building a tween for a single value owned by the caller.
UISequenceBuilder sequence ()
 Starts building a multi-step (sequenced/parallel) animation.
void cancelAll ()
 Cancels every animation currently running on this component.

Static Public Attributes

static constexpr ae::ComponentTypeID TYPE_ID = static_cast<ae::ComponentTypeID>(ComponentType::Animation)

Protected Member Functions

void submitToManager () override

Private Attributes

UIAnimator animator

Detailed Description

ECS component that owns a UIAnimator for entity-scoped UI tweens.

Definition at line 18 of file UIAnimationComponent.hpp.

Member Function Documentation

◆ animate()

template<typename T>
UIPropertyAnimationBuilder< T > UIAnimationComponent::animate ( T & target)
inline

Starts building a tween for a single value owned by the caller.

See also
UIAnimator::animate

Definition at line 41 of file UIAnimationComponent.hpp.

◆ cancelAll()

void UIAnimationComponent::cancelAll ( )
inline

Cancels every animation currently running on this component.

Definition at line 58 of file UIAnimationComponent.hpp.

◆ destroy()

void UIAnimationComponent::destroy ( )
override

Definition at line 8 of file UIAnimationComponent.cpp.

◆ getType()

ae::ComponentTypeID UIAnimationComponent::getType ( ) const
inlineoverride

Definition at line 32 of file UIAnimationComponent.hpp.

◆ init()

void UIAnimationComponent::init ( )
inlineoverride

Definition at line 23 of file UIAnimationComponent.hpp.

◆ sequence()

UISequenceBuilder UIAnimationComponent::sequence ( )
inline

Starts building a multi-step (sequenced/parallel) animation.

See also
UIAnimator::sequence

Definition at line 50 of file UIAnimationComponent.hpp.

◆ submitToManager()

void UIAnimationComponent::submitToManager ( )
inlineoverrideprotected

Definition at line 64 of file UIAnimationComponent.hpp.

◆ update()

void UIAnimationComponent::update ( ae::q20_12_t dt)
override

Definition at line 3 of file UIAnimationComponent.cpp.

Member Data Documentation

◆ animator

UIAnimator UIAnimationComponent::animator
private

Definition at line 69 of file UIAnimationComponent.hpp.

◆ TYPE_ID

ae::ComponentTypeID UIAnimationComponent::TYPE_ID = static_cast<ae::ComponentTypeID>(ComponentType::Animation)
staticconstexpr

Definition at line 21 of file UIAnimationComponent.hpp.


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