Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5110 in orxonox.OLD for trunk/src/util/animation/animation_player.cc


Ignore:
Timestamp:
Aug 23, 2005, 11:07:40 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: changed the behaviour of the iterator.
Now it is soon possible to walk through a List from front and back, and tell the Iterator from where to seek

@patrick: i had to disable your Collision-Detection algorithms, because they had a seekElement inside, that i did not entirely grasp the meaning of….
trying to fix this now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/animation/animation_player.cc

    r4836 r5110  
    8686  // deleting the Animation List AND all the elements of the List
    8787  tIterator<Animation>* animIt = this->animationList->getIterator();
    88   Animation* anim = animIt->nextElement();
     88  Animation* anim = animIt->firstElement();
    8989  while( anim != NULL)
    9090    {
     
    109109      // iterate through all the animations and tick them.
    110110      tIterator<Animation>* animIt = this->animationList->getIterator();
    111       Animation* anim = animIt->nextElement();
     111      Animation* anim = animIt->firstElement();
    112112      while( anim != NULL)
    113113        {
     
    147147{
    148148  tIterator<Animation>* animIt = this->animationList->getIterator();
    149   Animation* anim = animIt->nextElement();
     149  Animation* anim = animIt->firstElement();
    150150  while( anim != NULL)
    151151    {
     
    176176  // Per ANIMATION DEBUG
    177177  tIterator<Animation>* animIt = this->animationList->getIterator();
    178   Animation* anim = animIt->nextElement();
     178  Animation* anim = animIt->firstElement();
    179179  while( anim != NULL)
    180180    {
Note: See TracChangeset for help on using the changeset viewer.