38 m_tweeners.push_back(t);
63 bool claw::tween::tweener_group::do_is_finished()
const 65 return m_tweeners.empty();
73 double claw::tween::tweener_group::do_update(
double dt )
75 typedef std::list<tweener>::iterator iterator_type;
78 iterator_type it = m_tweeners.begin();
80 while ( it != m_tweeners.end() )
82 const double r = it->update(dt);
83 result = std::min(result, r);
85 if ( it->is_finished() )
87 const iterator_type tmp(it);
89 m_tweeners.erase(tmp);
104 return m_tweeners.empty();
The tweener group manages several tweeners and remove them when they are over.
void clear()
Remove all the tweeners from the group.
void insert(const tweener &t)
Add a tweener in the group.
bool empty() const
Tells if there is nothing in this group.
A tweener makes a value to evolve through time from a initial value to an end value according to a gi...
The tweener group manages several tweeners and remove them when they are over.