Changeset 11912 for code/branches/RacingBots_FS18/src
- Timestamp:
- Apr 26, 2018, 4:03:15 PM (7 years ago)
- Location:
- code/branches/RacingBots_FS18/src/modules/gametypes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRaceController.cc
r11893 r11912 63 63 64 64 int i; 65 for (i = -2; findCheckpoint(i) != nullptr; i--) 65 for (i = -2; findCheckpoint(i) != nullptr; i--) // WIESO? 66 66 { 67 67 continue; … … 124 124 if (currentCheckpoint == findCheckpoint(checkpointIndex)) 125 125 { 126 //orxout() << currentCheckpoint->getCheckpointIndex()<<endl;126 orxout() << currentCheckpoint->getCheckpointIndex()<<endl; 127 127 continue; 128 128 } 129 129 if (findCheckpoint(checkpointIndex) == nullptr){ 130 orxout()<<"nullpointer @ SpaceraceController line 130"<< endl;131 130 orxout(internal_warning) << "Problematic Point: " << checkpointIndex << endl; 132 131 } 133 132 else 134 133 numberOfWays += rekSimulationCheckpointsReached(findCheckpoint(checkpointIndex), zaehler); 134 135 135 } 136 136 zaehler[currentCheckpoint] += numberOfWays; … … 173 173 174 174 } 175 175 if(minNextRaceCheckPoint==nullptr){orxout()<<"minNextRaceCheckPoint=nullpointer line 175 SpaceRaceController index: "<<endl;} 176 176 return minNextRaceCheckPoint; 177 177 } … … 228 228 if (checkpoint->getCheckpointIndex() == index) 229 229 return checkpoint; 230 } 231 230 231 } 232 233 orxout()<<"returned nullptr @line 231 SpaceRaceController"<<endl; 232 234 return nullptr; 233 235 } … … 325 327 this->moveToPosition(Vector3(rnd()*100, rnd()*100, rnd()*100)); 326 328 this->spin(); 327 //orxout(user_status) << "Mindistance reached" << std::endl;329 orxout(user_status) << "Mindistance reached" << std::endl; 328 330 return; 329 331 } -
code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRaceManager.cc
r11071 r11912 113 113 RaceCheckPoint* SpaceRaceManager::findCheckpoint(int index) const 114 114 { 115 for (RaceCheckPoint* checkpoint : this->checkpoints_)115 /*for (RaceCheckPoint* checkpoint : this->checkpoints_) 116 116 if (checkpoint->getCheckpointIndex() == index) 117 117 return checkpoint; 118 return nullptr;*/ 119 for (RaceCheckPoint* checkpoint : this->checkpoints_){ 120 if (checkpoint->getCheckpointIndex() == index) 121 return checkpoint; 122 } 123 orxout()<<"returned checkpoint @line 123 SpaceRaceManager"<<endl; 118 124 return nullptr; 119 125 }
Note: See TracChangeset
for help on using the changeset viewer.