38 m_tweeners.push_back(t);
63 bool claw::tween::tweener_sequence::do_is_finished()
const 65 return m_tweeners.empty();
73 double claw::tween::tweener_sequence::do_update(
double dt )
77 while ( (result != 0) && !m_tweeners.empty() )
79 result = m_tweeners.front().update(result);
81 if ( m_tweeners.front().is_finished() )
82 m_tweeners.pop_front();
94 return m_tweeners.empty();
void clear()
Remove all the tweeners from the sequence.
void insert(const tweener &t)
Add a tweener in the sequence.
The tweener sequence manages several tweeners in a common timeline.
bool empty() const
Tells if there is nothing in this sequence.
A tweener makes a value to evolve through time from a initial value to an end value according to a gi...
The tweener sequence manages several tweeners in a common timeline.