38 m_tweeners.push_back(t);
63bool claw::tween::tweener_sequence::do_is_finished()
const
65 return m_tweeners.empty();
73double 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();
The tweener sequence manages several tweeners in a common timeline.
void clear()
Remove all the tweeners from the sequence.
void insert(const tweener &t)
Add a tweener in the sequence.
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.