Changeset 11912
- Timestamp:
- Apr 26, 2018, 4:03:15 PM (7 years ago)
- Location:
- code/branches/RacingBots_FS18
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/RacingBots_FS18/data/levels/newnewnewspacerace.oxw
r11893 r11912 479 479 480 480 <!-- the last checkpoint is bigger and red --> 481 <RaceCheckPoint name="checkpoint20" yaw=90 pitch=90 position="5 3000,0,0" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="60" checkpointindex="19" islast="true">481 <RaceCheckPoint name="checkpoint20" yaw=90 pitch=90 position="51000,0,0" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="60" checkpointindex="19" islast="true"> 482 482 <attached> 483 483 <Model position="0,0,0" scale="70" mesh="Checkpoint_Finish.mesh"/> … … 499 499 </attached> 500 500 <controller> 501 <ArrowController accuracy = 2000>501 <ArrowController accuracy = 5000> 502 502 <gpspoints> 503 <Model mesh="cube.mesh" scale= 2position="1000,30,0"/>504 <Model mesh="cube.mesh" scale= 2position="3000,200,100"/>505 <Model mesh="cube.mesh" scale= 2position="5000,100,500"/>506 <Model mesh="cube.mesh" scale= 2position="8000,-150,150"/>507 <Model mesh="cube.mesh" scale= 2position="10000,-200,200"/>508 <Model mesh="cube.mesh" scale= 2position="13000,200,400"/>509 <Model mesh="cube.mesh" scale= 2position="15000,0,0"/>510 <Model mesh="cube.mesh" scale= 2position="18000,150,-150"/>511 <Model mesh="cube.mesh" scale= 2position="21000,200,-120"/>512 <Model mesh="cube.mesh" scale= 2position="24000,-150,-80"/>513 <Model mesh="cube.mesh" scale= 2position="27000,-200,0"/>514 <Model mesh="cube.mesh" scale= 2position="30000,-300,900"/>515 <Model mesh="cube.mesh" scale= 2position="33000,600,60"/>516 <Model mesh="cube.mesh" scale= 2position="35000,120,20"/>517 <Model mesh="cube.mesh" scale= 2position="38000,-200,0"/>518 <Model mesh="cube.mesh" scale= 2position="41000,30,-50"/>519 <Model mesh="cube.mesh" scale= 2position="44000,90,0"/>520 <Model mesh="cube.mesh" scale= 2position="47000,120,30"/>521 <Model mesh="cube.mesh" scale= 2position="50000,0,100"/>522 <Model mesh="cube.mesh" scale= 2 position="53000,0,0"/>503 <Model mesh="cube.mesh" scale=0 position="1000,30,0"/> 504 <Model mesh="cube.mesh" scale=0 position="3000,200,100"/> 505 <Model mesh="cube.mesh" scale=0 position="5000,100,500"/> 506 <Model mesh="cube.mesh" scale=0 position="8000,-150,150"/> 507 <Model mesh="cube.mesh" scale=0 position="10000,-200,200"/> 508 <Model mesh="cube.mesh" scale=0 position="13000,200,400"/> 509 <Model mesh="cube.mesh" scale=0 position="15000,0,0"/> 510 <Model mesh="cube.mesh" scale=0 position="18000,150,-150"/> 511 <Model mesh="cube.mesh" scale=0 position="21000,200,-120"/> 512 <Model mesh="cube.mesh" scale=0 position="24000,-150,-80"/> 513 <Model mesh="cube.mesh" scale=0 position="27000,-200,0"/> 514 <Model mesh="cube.mesh" scale=0 position="30000,-300,900"/> 515 <Model mesh="cube.mesh" scale=0 position="33000,600,60"/> 516 <Model mesh="cube.mesh" scale=0 position="35000,120,20"/> 517 <Model mesh="cube.mesh" scale=0 position="38000,-200,0"/> 518 <Model mesh="cube.mesh" scale=0 position="41000,30,-50"/> 519 <Model mesh="cube.mesh" scale=0 position="44000,90,0"/> 520 <Model mesh="cube.mesh" scale=0 position="47000,120,30"/> 521 <Model mesh="cube.mesh" scale=0 position="50000,0,100"/> 522 <Model mesh="cube.mesh" scale=0 position="51000,0,0"/> 523 523 524 524 -
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.