Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3654 in orxonox.OLD for orxonox/trunk/src/command_node.cc


Ignore:
Timestamp:
Mar 25, 2005, 6:47:26 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: altered the list function to make it more performant the world now uses iterators everywhere.

File:
1 edited

Legend:

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

    r3608 r3654  
    281281  if( this->world->command(cmd)) return;
    282282
    283   WorldEntity* entity = bound->enumerate();
     283  tIterator<WorldEntity>* iterator = bound->getIterator();
     284  WorldEntity* entity = iterator->nextElement();
    284285  while( entity != NULL)
    285286    {
    286287      entity->command (cmd); /*no absorbtion of command! strange*/
    287       entity = bound->nextElement();
    288     }
     288      entity = iterator->nextElement();
     289    }
     290  delete iterator;
    289291}
    290292
Note: See TracChangeset for help on using the changeset viewer.