37 m_tweeners.push_back(t);
59bool claw::tween::tweener_group::do_is_finished()
const
61 return m_tweeners.empty();
68double claw::tween::tweener_group::do_update(
double dt)
70 typedef std::vector<tweener>::iterator iterator_type;
73 iterator_type it = m_tweeners.begin();
75 while(it != m_tweeners.end())
77 const double r = it->update(dt);
78 result = std::min(result, r);
81 it = m_tweeners.erase(it);
94 return m_tweeners.empty();
The tweener group manages several tweeners and remove them when they are over.
bool empty() const
Tells if there is nothing in this group.
void insert(const tweener &t)
Add a tweener in the group.
void clear()
Remove all the tweeners from the 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.