The tweener group manages several tweeners and remove them when they are over. More...
#include <tweener_group.hpp>
Public Member Functions | |
void | insert (const tweener &t) |
Add a tweener in the group. | |
void | clear () |
Remove all the tweeners from the group. | |
bool | empty () const |
Tells if there is nothing in this group. | |
![]() | |
virtual | ~base_tweener () |
Destructor. | |
base_tweener * | clone () 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 | |
![]() | |
typedef std::function< void()> | finish_callback |
The type of the function called to notify the end of the tweener. | |
The tweener group manages several tweeners and remove them when they are over.
Definition at line 48 of file tweener_group.hpp.
void claw::tween::tweener_group::clear | ( | ) |
Remove all the tweeners from the group.
Definition at line 43 of file tweener_group.cpp.
bool claw::tween::tweener_group::empty | ( | ) | const |
Tells if there is nothing in this group.
Definition at line 92 of file tweener_group.cpp.
void claw::tween::tweener_group::insert | ( | const tweener & | t | ) |
Add a tweener in the group.
t | The tweener. |
Definition at line 35 of file tweener_group.cpp.