37 m_tweeners.push_back(t);
59bool claw::tween::tweener_sequence::do_is_finished()
const
61 return m_tweeners.empty();
68double claw::tween::tweener_sequence::do_update(
double dt)
72 while((result != 0) && !m_tweeners.empty())
74 result = m_tweeners.front().update(result);
76 if(m_tweeners.front().is_finished())
77 m_tweeners.erase(m_tweeners.begin());
88 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.