Changeset 9987 in orxonox.OLD for branches/playability/src/world_entities/space_ships/space_ship.cc
- Timestamp:
- Dec 3, 2006, 3:26:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/space_ships/space_ship.cc
r9979 r9987 626 626 } 627 627 else { // shield <= pDamage 628 this->shieldCur = 0;629 this->shieldActive = false; //shield collap tses628 this->shieldCur -=pDamage; 629 this->shieldActive = false; //shield collapses 630 630 pDamage = pDamage - this->shieldCur; 631 631 if( !this->shieldActive) { … … 641 641 if( this->armorCur <= 0) { /* FIXME implement shipcrash*/ } 642 642 } 643 643 644 644 645 void SpaceShip::regen(float time){ … … 671 672 } 672 673 674 673 675 /** 674 676 * Weapon regeneration … … 679 681 float energy = ( this->reactorOutput * this->weaponEnergyShare + this->weaponEnergyRegen) * time; 680 682 Weapon* weapon; 681 for( int i=0; i < this->weaponMan.getSlotCount(); i++)683 for( unsigned int i=0; i < this->weaponMan.getSlotCount(); i++) 682 684 { 683 685 weapon = this->weaponMan.getWeapon(i); … … 692 694 } 693 695 696 694 697 void SpaceShip::enterPlaymode(Playable::Playmode playmode) 695 698 { 696 699 } 697 700 701 698 702 void SpaceShip::movement (float dt) 699 703 {
Note: See TracChangeset
for help on using the changeset viewer.