1 #include "animatedobject.h"
2 #include "animationplayer.h"
9 void AnimationPlayer::play(AnimatedObject &obj, const Animation &anim)
11 slots.push_back(Slot(obj, anim));
14 void AnimationPlayer::tick(const Time::TimeDelta &dt)
16 for(list<Slot>::iterator i=slots.begin(); i!=slots.end(); )
19 i->object.set_matrix(i->iterator.get_matrix());
21 if(i->iterator.is_end())
29 AnimationPlayer::Slot::Slot(AnimatedObject &o, const Animation &a):