Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2006, 3:26:08 PM (18 years ago)
Author:
nicolasc
Message:

update regen(); add new model for hbolt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/space_ships/space_ship.cc

    r9979 r9987  
    626626    }
    627627    else { // shield <= pDamage
    628       this->shieldCur = 0;
    629       this->shieldActive = false; //shield collaptses
     628      this->shieldCur -=pDamage;
     629      this->shieldActive = false; //shield collapses
    630630      pDamage = pDamage - this->shieldCur;
    631631      if( !this->shieldActive) {
     
    641641  if( this->armorCur <= 0) { /* FIXME implement shipcrash*/ }
    642642}
     643
    643644
    644645void SpaceShip::regen(float time){
     
    671672}
    672673
     674
    673675/**
    674676 * Weapon regeneration
     
    679681  float energy  = ( this->reactorOutput * this->weaponEnergyShare + this->weaponEnergyRegen) * time;
    680682  Weapon* weapon;
    681   for( int i=0; i < this->weaponMan.getSlotCount(); i++)
     683  for( unsigned int i=0; i < this->weaponMan.getSlotCount(); i++)
    682684  {
    683685    weapon = this->weaponMan.getWeapon(i);
     
    692694}
    693695
     696
    694697void SpaceShip::enterPlaymode(Playable::Playmode playmode)
    695698{
    696699}
    697700
     701
    698702void SpaceShip::movement (float dt)
    699703{
Note: See TracChangeset for help on using the changeset viewer.