Changeset 11893 for code/branches/RacingBots_FS18
- Timestamp:
- Apr 19, 2018, 4:11:27 PM (7 years ago)
- Location:
- code/branches/RacingBots_FS18
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/RacingBots_FS18/data/levels/newnewnewspacerace.oxw
r11857 r11893 496 496 <Arrow> 497 497 <attached> 498 <Model scale="5" mesh=" tutorialpointer3.mesh"/>498 <Model scale="5" mesh="botpointer4.mesh"/> 499 499 </attached> 500 500 <controller> 501 501 <ArrowController accuracy = 2000> 502 502 <gpspoints> 503 <Model mesh="cube.mesh" scale= 1.5position="1000,30,0"/>504 <Model mesh="cube.mesh" scale= 1.5position="3000,200,100"/>505 <Model mesh="cube.mesh" scale= 1.5position="5000,100,500"/>506 <Model mesh="cube.mesh" scale= 1.5position="8000,-150,150"/>507 <Model mesh="cube.mesh" scale= 1.5position="10000,-200,200"/>508 <Model mesh="cube.mesh" scale= 1.5position="13000,200,400"/>509 <Model mesh="cube.mesh" scale= 1.5position="15000,0,0"/>510 <Model mesh="cube.mesh" scale= 1.5position="18000,150,-150"/>511 <Model mesh="cube.mesh" scale= 1.5position="21000,200,-120"/>512 <Model mesh="cube.mesh" scale= 1.5position="24000,-150,-80"/>513 <Model mesh="cube.mesh" scale= 1.5position="27000,-200,0"/>514 <Model mesh="cube.mesh" scale= 1.5position="30000,-300,900"/>515 <Model mesh="cube.mesh" scale= 1.5position="33000,600,60"/>516 <Model mesh="cube.mesh" scale= 1.5position="35000,120,20"/>517 <Model mesh="cube.mesh" scale= 1.5position="38000,-200,0"/>518 <Model mesh="cube.mesh" scale= 1.5position="41000,30,-50"/>519 <Model mesh="cube.mesh" scale= 1.5position="44000,90,0"/>520 <Model mesh="cube.mesh" scale= 1.5position="47000,120,30"/>521 <Model mesh="cube.mesh" scale= 1.5position="50000,0,100"/>522 <Model mesh="cube.mesh" scale= 1.5position="53000,0,0"/>503 <Model mesh="cube.mesh" scale=2 position="1000,30,0"/> 504 <Model mesh="cube.mesh" scale=2 position="3000,200,100"/> 505 <Model mesh="cube.mesh" scale=2 position="5000,100,500"/> 506 <Model mesh="cube.mesh" scale=2 position="8000,-150,150"/> 507 <Model mesh="cube.mesh" scale=2 position="10000,-200,200"/> 508 <Model mesh="cube.mesh" scale=2 position="13000,200,400"/> 509 <Model mesh="cube.mesh" scale=2 position="15000,0,0"/> 510 <Model mesh="cube.mesh" scale=2 position="18000,150,-150"/> 511 <Model mesh="cube.mesh" scale=2 position="21000,200,-120"/> 512 <Model mesh="cube.mesh" scale=2 position="24000,-150,-80"/> 513 <Model mesh="cube.mesh" scale=2 position="27000,-200,0"/> 514 <Model mesh="cube.mesh" scale=2 position="30000,-300,900"/> 515 <Model mesh="cube.mesh" scale=2 position="33000,600,60"/> 516 <Model mesh="cube.mesh" scale=2 position="35000,120,20"/> 517 <Model mesh="cube.mesh" scale=2 position="38000,-200,0"/> 518 <Model mesh="cube.mesh" scale=2 position="41000,30,-50"/> 519 <Model mesh="cube.mesh" scale=2 position="44000,90,0"/> 520 <Model mesh="cube.mesh" scale=2 position="47000,120,30"/> 521 <Model mesh="cube.mesh" scale=2 position="50000,0,100"/> 522 <Model mesh="cube.mesh" scale=2 position="53000,0,0"/> 523 523 524 524 -
code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRaceController.cc
r11720 r11893 20 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21 21 * 22 * Created on: Oct 8, 2012 22 * Created on: Oct 8, 2012findCheck 23 23 * Author: purgham 24 24 */ … … 127 127 continue; 128 128 } 129 if (findCheckpoint(checkpointIndex) == nullptr) 129 if (findCheckpoint(checkpointIndex) == nullptr){ 130 orxout()<<"nullpointer @ SpaceraceController line 130"<< endl; 130 131 orxout(internal_warning) << "Problematic Point: " << checkpointIndex << endl; 132 } 131 133 else 132 134 numberOfWays += rekSimulationCheckpointsReached(findCheckpoint(checkpointIndex), zaehler); … … 223 225 RaceCheckPoint* SpaceRaceController::findCheckpoint(int index) const 224 226 { 225 for (RaceCheckPoint* checkpoint : this->checkpoints_) 227 for (RaceCheckPoint* checkpoint : this->checkpoints_){ 226 228 if (checkpoint->getCheckpointIndex() == index) 227 229 return checkpoint; 230 } 231 228 232 return nullptr; 229 233 } … … 328 332 329 333 this->boostControl(); 334 if (nextRaceCheckpoint_ == nullptr) orxout() << "nextRaceCheckpoint_ equals to nullpointer look @line 334 SpaceRaceController.cc" << endl; 330 335 this->moveToPosition(nextRaceCheckpoint_->getPosition()); 331 336 this->boostControl();
Note: See TracChangeset
for help on using the changeset viewer.