Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 8, 2006, 5:44:04 PM (20 years ago)
Author:
bensch
Message:

huge pipeline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/space_ships/space_ship.cc

    r6440 r6443  
    103103  cannon->setName("BFG");
    104104
    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);
    110110
    111111  this->getWeaponManager()->changeWeaponConfig(1);
     
    221221}
    222222
    223 /**
    224  * adds a weapon to the weapon list of the spaceship
    225  * @param weapon to add
    226 */
    227 void SpaceShip::addWeapon(Weapon* weapon)
    228 {
    229   this->getWeaponManager()->addWeapon(weapon);
    230 }
    231 
    232 
    233 /**
    234  *  removes a weapon from the spaceship
    235  * @param weapon to remove
    236 */
    237 void SpaceShip::removeWeapon(Weapon* weapon)
    238 {
    239   this->getWeaponManager()->removeWeapon(weapon);
    240 }
    241223
    242224/**
     
    451433      this->bFire = event.bPressed;
    452434  else if( event.type == KeyMapper::PEV_NEXT_WEAPON && event.bPressed)
     435  {
    453436    this->getWeaponManager()->nextWeaponConfig();//if( !event.bPressed) this->bWeaponChange = !this->bWeaponChange;
     437  }
    454438  else if ( event.type == KeyMapper::PEV_PREVIOUS_WEAPON && event.bPressed)
    455439    this->getWeaponManager()->previousWeaponConfig();
     
    503487    {
    504488      turret = new Turret();
    505       this->getWeaponManager()->addWeapon(turret, 2);
     489      this->addWeapon(turret, 2);
    506490      this->getWeaponManager()->changeWeaponConfig(2);
    507491    }
     
    513497      turret = dynamic_cast<Weapon*>(Factory::fabricate(CL_TARGETING_TURRET));
    514498      if (turret != NULL)
    515       this->getWeaponManager()->addWeapon(turret, 3);
     499      this->addWeapon(turret, 3);
    516500
    517501      this->getWeaponManager()->changeWeaponConfig(3);
Note: See TracChangeset for help on using the changeset viewer.