claw 1.9.0
 
Loading...
Searching...
No Matches
claw::tween::tweener_sequence Class Reference

The tweener sequence manages several tweeners in a common timeline. More...

#include <tweener_sequence.hpp>

Inheritance diagram for claw::tween::tweener_sequence:
Collaboration diagram for claw::tween::tweener_sequence:

Public Member Functions

void insert (const tweener &t)
 Add a tweener in the sequence.
 
void clear ()
 Remove all the tweeners from the sequence.
 
bool empty () const
 Tells if there is nothing in this sequence.
 
- Public Member Functions inherited from claw::tween::base_tweener
virtual ~base_tweener ()
 Destructor.
 
base_tweenerclone () const
 Create a copy of this allocated with new.
 
bool is_finished () const
 Tell if the tweener has reached his total duration.
 
double update (double dt)
 Update the base_tweener of a given amount of time.
 
void on_finished (finish_callback f)
 Execute the callbacks notifying about the finish of the tweener.
 

Additional Inherited Members

- Public Types inherited from claw::tween::base_tweener
typedef std::function< void()> finish_callback
 The type of the function called to notify the end of the tweener.
 

Detailed Description

The tweener sequence manages several tweeners in a common timeline.

A tweener in a tweener sequence will start only when all the previous tweeners in the same sequence are over.

Author
Julien Jorge
See also
C++ Tweeners

Definition at line 51 of file tweener_sequence.hpp.

Member Function Documentation

◆ clear()

void claw::tween::tweener_sequence::clear ( )

Remove all the tweeners from the sequence.

Definition at line 43 of file tweener_sequence.cpp.

◆ empty()

bool claw::tween::tweener_sequence::empty ( ) const

Tells if there is nothing in this sequence.

Definition at line 86 of file tweener_sequence.cpp.

◆ insert()

void claw::tween::tweener_sequence::insert ( const tweener & t)

Add a tweener in the sequence.

Parameters
tThe tweener.

Definition at line 35 of file tweener_sequence.cpp.


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