Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5110 in orxonox.OLD for trunk/src/lib/coord


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/lib/coord/p_node.cc

    r5108 r5110  
    7979{
    8080  tIterator<PNode>* iterator = this->children->getIterator();
    81   PNode* pn = iterator->nextElement();
     81  PNode* pn = iterator->firstElement();
    8282  while( pn != NULL)
    8383    {
     
    435435
    436436  tIterator<PNode>* iterator = this->children->getIterator();
    437   PNode* pn = iterator->nextElement();
     437  PNode* pn = iterator->firstElement();
    438438
    439439  while( pn != NULL)
     
    605605    {
    606606      tIterator<PNode>* iterator = this->children->getIterator();
    607       PNode* pn = iterator->nextElement();
     607      PNode* pn = iterator->firstElement();
    608608      while( pn != NULL)
    609609      {
     
    615615
    616616        pn->update(dt);
    617           //pn = this->children->nextElement();
    618617        pn = iterator->nextElement();
    619618      }
     
    656655    tIterator<PNode>* iterator = this->children->getIterator();
    657656      //PNode* pn = this->children->enumerate ();
    658     PNode* pn = iterator->nextElement();
     657    PNode* pn = iterator->firstElement();
    659658    while( pn != NULL)
    660659    {
     
    722721  if (depth >= 2 || depth == 0)
    723722  {
     723    Vector childColor =  Color::HSVtoRGB(Color::RGBtoHSV(color)+Vector(20,0,.0));
     724
    724725    tIterator<PNode>* iterator = this->children->getIterator();
    725       //PNode* pn = this->children->enumerate ();
    726     Vector childColor =  Color::HSVtoRGB(Color::RGBtoHSV(color)+Vector(20,0,.0));
    727     PNode* pn = iterator->nextElement();
     726    PNode* pn = iterator->firstElement();
    728727    while( pn != NULL)
    729728    {
Note: See TracChangeset for help on using the changeset viewer.