Changeset 10742 in orxonox.OLD for branches/presentation/src/world_entities/space_ships
- Timestamp:
- Jun 20, 2007, 8:43:43 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/space_ships/space_ship.cc
r10740 r10742 187 187 this->weaponMan.addWeaponToSlot(1, 3, "RFCannon"); 188 188 189 /*this->weaponMan.addWeaponToSlot(0, 4, "NadionLaser");189 this->weaponMan.addWeaponToSlot(0, 4, "NadionLaser"); 190 190 this->weaponMan.addWeaponToSlot(0, 5, "NadionLaser"); 191 191 this->weaponMan.addWeaponToSlot(2, 4, "NadionLaser"); … … 195 195 this->weaponMan.addWeaponToSlot(0, 7, "Disruptor"); 196 196 this->weaponMan.addWeaponToSlot(3, 6, "Disruptor"); 197 this->weaponMan.addWeaponToSlot(3, 7, "Disruptor"); */197 this->weaponMan.addWeaponToSlot(3, 7, "Disruptor"); 198 198 199 199 … … 333 333 LoadParam(root, "loadShield", this, WorldEntity, loadShield) 334 334 .describe("set shield parameters: current strenght , max strenght, threshhold value (0..1), regeneration rate"); 335 LoadParam(root, "loadHealth", this, WorldEntity, loadHealth)336 .describe("set armor/health parameters: current strenght , max strenght");335 // LoadParam(root, "loadHealth", this, WorldEntity, loadHealth) 336 // .describe("set armor/health parameters: current strenght , max strenght"); 337 337 LoadParam(root, "loadElectronic", this, WorldEntity, loadElectronic) 338 338 .describe("set electronics parameters: current strenght , max strenght, threshhold value (0..1), regeneration rate"); … … 346 346 LoadParam(root, "mouseSenitivity", this, SpaceShip, setMouseSensitivity); 347 347 348 /*349 LOAD_PARAM_START_CYCLE(root, element);350 {351 LoadParamXML_CYCLE(element, "weaponMan", this->weaponMan, WeaponManager, loadWeapons)352 .describe("loads Weapons");353 }354 LOAD_PARAM_END_CYCLE(element);355 356 LOAD_PARAM_START_CYCLE(root, element);357 {358 LoadParamXML_CYCLE(element, "secWeaponMan", this->secWeaponMan, WeaponManager, loadWeapons)359 .describe("loads Weapons");360 }361 LOAD_PARAM_END_CYCLE(element);*/362 348 } 363 349 … … 427 413 WorldEntity::draw(); 428 414 429 // glMatrixMode(GL_MODELVIEW);430 // glPushMatrix();431 432 // float matrix[4][4];433 // glTranslatef (this->getAbsCoor ().x-1, this->getAbsCoor ().y-.2, this->getAbsCoor ().z);434 // this->getAbsDir().matrix (matrix);435 // glMultMatrixf((float*)matrix);436 //glScalef(2.0, 2.0, 2.0); // no double rescale437 438 439 // this->trail->draw();440 441 // glTranslatef(0,0,-.5);442 // this->trailL->draw();443 444 // glTranslatef(0,0,1);445 // this->trailR->draw();446 447 // glPopMatrix();448 //this->debug(0);449 415 } 450 416 … … 477 443 } 478 444 479 // Playable::tick(time);480 481 // this->test->tick(time);482 445 483 446 // Own Tick Setup, as a different fire routine is used on the weapon manager … … 528 491 this->oldPos = this->getAbsCoor(); 529 492 530 //FIXME531 // this->trail->tick(time);532 // this->trailL->tick(time);533 // this->trailR->tick(time);534 535 493 if (!this->isTravelDistanceInit) 536 494 { … … 538 496 //this->isTravelDistanceInit = true; 539 497 } 540 541 //orient the spaceship in direction of the mouse542 /*543 rotQuat = Quaternion::quatSlerp( this->getAbsDir(), mouseDir, 0.5);//fabsf(time)*shipInertia);544 if (this->getAbsDir().distance(rotQuat) > 0.00000000000001)545 this->setAbsDir( rotQuat);546 //this->setAbsDirSoft(mouseDir,5);547 */548 /*549 this->shiftCoor(move);550 */551 552 // PRINTF(0)("id of %s is: %i\n", this->getName(), this->getOMListNumber());553 554 498 } 555 499
Note: See TracChangeset
for help on using the changeset viewer.