Changeset 6443 in orxonox.OLD for trunk/src/world_entities/space_ships/space_ship.cc
- Timestamp:
- Jan 8, 2006, 5:44:04 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/space_ships/space_ship.cc
r6440 r6443 103 103 cannon->setName("BFG"); 104 104 105 this-> getWeaponManager()->addWeapon(wpLeft, 1, 0);106 this-> getWeaponManager()->addWeapon(wpRight,1 ,1);107 this-> getWeaponManager()->addWeapon(cannon, 0, 6);108 109 //this-> getWeaponManager()->addWeapon(turret, 3, 0);105 this->addWeapon(wpLeft, 1, 0); 106 this->addWeapon(wpRight,1 ,1); 107 this->addWeapon(cannon, 0, 6); 108 109 //this->addWeapon(turret, 3, 0); 110 110 111 111 this->getWeaponManager()->changeWeaponConfig(1); … … 221 221 } 222 222 223 /**224 * adds a weapon to the weapon list of the spaceship225 * @param weapon to add226 */227 void SpaceShip::addWeapon(Weapon* weapon)228 {229 this->getWeaponManager()->addWeapon(weapon);230 }231 232 233 /**234 * removes a weapon from the spaceship235 * @param weapon to remove236 */237 void SpaceShip::removeWeapon(Weapon* weapon)238 {239 this->getWeaponManager()->removeWeapon(weapon);240 }241 223 242 224 /** … … 451 433 this->bFire = event.bPressed; 452 434 else if( event.type == KeyMapper::PEV_NEXT_WEAPON && event.bPressed) 435 { 453 436 this->getWeaponManager()->nextWeaponConfig();//if( !event.bPressed) this->bWeaponChange = !this->bWeaponChange; 437 } 454 438 else if ( event.type == KeyMapper::PEV_PREVIOUS_WEAPON && event.bPressed) 455 439 this->getWeaponManager()->previousWeaponConfig(); … … 503 487 { 504 488 turret = new Turret(); 505 this-> getWeaponManager()->addWeapon(turret, 2);489 this->addWeapon(turret, 2); 506 490 this->getWeaponManager()->changeWeaponConfig(2); 507 491 } … … 513 497 turret = dynamic_cast<Weapon*>(Factory::fabricate(CL_TARGETING_TURRET)); 514 498 if (turret != NULL) 515 this-> getWeaponManager()->addWeapon(turret, 3);499 this->addWeapon(turret, 3); 516 500 517 501 this->getWeaponManager()->changeWeaponConfig(3);
Note: See TracChangeset
for help on using the changeset viewer.