Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5110 in orxonox.OLD for trunk/src/util/loading


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/loading/load_param.cc

    r5102 r5110  
    295295
    296296  tIterator<LoadParamDescription>* iterator = this->paramList->getIterator();
    297   LoadParamDescription* enumParamDesc = iterator->nextElement();
     297  LoadParamDescription* enumParamDesc = iterator->firstElement();
    298298  while (enumParamDesc)
    299299    {
     
    314314{
    315315  tIterator<LoadClassDescription>* iterator = LoadClassDescription::classList->getIterator();
    316   LoadClassDescription* enumClassDesc = iterator->nextElement();
     316  LoadClassDescription* enumClassDesc = iterator->firstElement();
    317317  while (enumClassDesc)
    318318    {
     
    336336{
    337337  tIterator<LoadParamDescription>* iterator = this->paramList->getIterator();
    338   LoadParamDescription* enumParamDesc = iterator->nextElement();
     338  LoadParamDescription* enumParamDesc = iterator->firstElement();
    339339  while (enumParamDesc)
    340340    {
     
    362362  PRINT(3)(" Listing all the Loadable Options (loaded since Game started).\n\n");
    363363  tIterator<LoadClassDescription>* classIT = LoadClassDescription::classList->getIterator();
    364   LoadClassDescription* enumClassDesc = classIT->nextElement();
     364  LoadClassDescription* enumClassDesc = classIT->firstElement();
    365365  while (enumClassDesc)
    366366    {
    367367      PRINT(3)("<%s>\n", enumClassDesc->className);
    368368      tIterator<LoadParamDescription>* paramIT = enumClassDesc->paramList->getIterator();
    369       LoadParamDescription* enumParamDesc = paramIT->nextElement();
     369      LoadParamDescription* enumParamDesc = paramIT->firstElement();
    370370      while (enumParamDesc)
    371371        {
     
    394394
    395395  tIterator<LoadClassDescription>* iterator = LoadClassDescription::classList->getIterator();
    396   LoadClassDescription* enumClassDesc = iterator->nextElement();
     396  LoadClassDescription* enumClassDesc = iterator->firstElement();
    397397  while (enumClassDesc)
    398398  {
     
    412412// {
    413413//   tIterator<LoadClassDescription>* iterator = LoadClassDescription::classList->getIterator();
    414 //   LoadClassDescription* enumClassDesc = iterator->nextElement();
     414//   LoadClassDescription* enumClassDesc = iterator->firstElement();
    415415//   while (enumClassDesc)
    416416//   {
Note: See TracChangeset for help on using the changeset viewer.