28 if (pAnimatable ==
nullptr) {
31 for (std::list<Animatable *>::iterator it = pAnimatable->mAnims.begin();
32 it != pAnimatable->mAnims.end();
34 objects.push_back(*it);
48 if (pCollideable ==
nullptr) {
51 for (std::list<Collideable *>::iterator it = pCollideable->mCollides.begin();
52 it != pCollideable->mCollides.end();
54 objects.push_back(*it);
68 if (pDrawable ==
nullptr) {
71 std::list<Drawable *> &draws = pDrawable->
GetDraws();
72 for (std::list<Drawable *>::iterator it = draws.begin(); it != draws.end(); ++it) {
73 objects.push_back(*it);
87 if (pTransformable ==
nullptr) {
90 for (std::list<Transformable *>::iterator it = pTransformable->mTransList.begin();
91 it != pTransformable->mTransList.end();
93 objects.push_back(*it);
Animatable()
Construct an animatable with no children, no filters, and a zero frame.
Collideable()
Construct a collideable with no children.
Mix-in for an object that draws itself and then a list of other drawables.
Definition drawable.h:32
std::list< Drawable * > & GetDraws()
Report the child list.
Definition drawable.h:213
The rendering engine.
Definition animhelper.h:3
void CollectChildren(std::list< Object * > &objects, Animatable *pAnimatable)
Append every animation descendant of an animatable.
Definition collectchildren.h:27