Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5110 in orxonox.OLD for trunk/src/story_entities


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

Location:
trunk/src/story_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/campaign.cc

    r4836 r5110  
    154154    */
    155155    tIterator<StoryEntity>* it = this->entities->getIterator();
    156     se = it->nextElement();
     156    se = it->firstElement();
    157157    while( se != NULL)
    158158    {
     
    284284
    285285  tIterator<StoryEntity>* iterator = this->entities->getIterator();
    286   StoryEntity* entity = iterator->nextElement();
     286  StoryEntity* entity = iterator->firstElement();
    287287  while( entity != NULL)
    288288    {
  • trunk/src/story_entities/world.cc

    r5098 r5110  
    864864
    865865      tIterator<WorldEntity>* iterator = this->entities->getIterator();
    866       WorldEntity* entity = iterator->nextElement();
     866      WorldEntity* entity = iterator->firstElement();
    867867      while( entity != NULL)
    868868        {
     
    951951  glLoadIdentity();
    952952  tIterator<WorldEntity>* iterator = this->entities->getIterator();
    953   entity = iterator->nextElement();
     953  entity = iterator->firstElement();
    954954  while( entity != NULL )
    955955  {
Note: See TracChangeset for help on using the changeset viewer.