42template <std::
size_t ValueCount>
64 [
this] (
int ,
const typename Animation<ValueCount>::ValueList& val)
70 effect->completionFn = [
this] (
int ,
bool wasCanceled)
78 Chain::addAnimation (std::move (effect));
This class owns a number of AnimatedValue objects. On each animation frame it gets the next calculate...
Definition: animation.h:168
int getId() const
Definition: animation.h:60
CompletionFn completionFn
function to call when the animation is completed or canceled.
Definition: animation.h:126
A container animation object that holds several animations and executes them in order.
Definition: chain.h:41
std::vector< std::unique_ptr< AnimationType > > sequence
the vector that owns our chain of effects.
Definition: chain.h:114
int currentEffect
index (into the sequence vector) of the effect that we are currently processing.
Definition: chain.h:118
An Animation class that can hold multiple Animation objects and execute them in sequence.
Definition: sequence.h:45
void addAnimation(std::unique_ptr< Animation< ValueCount > > effect)
Add an animation with the correct number of values to our sequence of effects.
Definition: sequence.h:58
Definition: animation.h:137
UpdateFn updateFn
Definition: animation.h:151