Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3833 in orxonox.OLD for orxonox/trunk/src/animation_player.cc


Ignore:
Timestamp:
Apr 14, 2005, 2:03:05 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: animation can now return the BaseObject it operates on

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/animation_player.cc

    r3821 r3833  
    142142
    143143
     144Anim* AnimationPlayer::getObjectFromBaseObject(const BaseObject* baseObject) const
     145{
     146  tIterator<Anim>* animIt = this->animationList->getIterator();
     147  Anim* anim = animIt->nextElement();
     148  while( anim != NULL)
     149    {
     150      if(anim->getBaseObject() == baseObject)
     151        {
     152          delete animIt;
     153          return anim;
     154        }
     155      anim = animIt->nextElement();
     156    }
     157  delete animIt;
     158
     159}
     160
     161
    144162
    145163/**
Note: See TracChangeset for help on using the changeset viewer.