- Timestamp:
- Jun 20, 2007, 8:43:43 PM (17 years ago)
- Location:
- branches/presentation/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/projectiles/plasma_pulse.cc
r10740 r10742 51 51 this->grid->setPulse(); 52 52 this->grid->setTexture( "textures/plasma.png"); 53 //this->grid->toList(OM_ENVIRON);53 this->grid->toList(OM_ENVIRON); 54 54 /* 55 55 this->blink = new Blink(); … … 82 82 { 83 83 this->origList = this->getOMListNumber(); 84 //this->toList(OM_ENVIRON);84 this->toList(OM_ENVIRON); 85 85 this->grid->setVisibility(true); 86 86 // this->blink->setVisibility(true); -
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 -
branches/presentation/src/world_entities/world_entity.cc
r10721 r10742 182 182 LoadParam(root, "drawTrack", this, WorldEntity, drawDebugTrack) 183 183 .describe("draws the track for debugging purposes"); 184 184 185 185 LoadParam(root, "forwardDamageToParent", this, WorldEntity, setForwardDamageToParent); 186 186 187 187 LoadParam(root, "damageable", this, WorldEntity, setDamageable); 188 188 … … 190 190 LoadParamXML(root, "Track", this, WorldEntity, addTrack) 191 191 .describe("creates and adds a track to this WorldEntity"); 192 193 LoadParam(root, "loadHealth", this, WorldEntity, loadHealth) 194 .describe("set armor/health parameters: current strenght , max strenght"); 192 195 } 193 196
Note: See TracChangeset
for help on using the changeset viewer.