Changeset 6700 in orxonox.OLD for trunk/src/world_entities/playable.cc
- Timestamp:
- Jan 25, 2006, 3:10:17 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/playable.cc
r6695 r6700 22 22 #include "state.h" 23 23 24 #include "world_entities/projectiles/projectile.h" 25 24 26 #include "power_ups/weapon_power_up.h" 25 27 #include "power_ups/param_power_up.h" … … 97 99 { 98 100 if (entity->isA(CL_PROJECTILE)) 99 this-> removeEnergy(entity->getEnergy());101 this->decreaseHealth(entity->getHealth()); 100 102 101 103 // EXTREME HACK 102 if (this->get Energy() == 0.0f)104 if (this->getHealth() == 0.0f) 103 105 this->deactivateNode(); 104 106 } … … 166 168 switch(ppu->getType()) { 167 169 case POWERUP_PARAM_HEALTH: 168 this-> addEnergy(ppu->getValue());170 this->increaseHealth(ppu->getValue()); 169 171 return true; 170 172 case POWERUP_PARAM_MAX_HEALTH: 171 this-> setMaxEnergy(this->getMaxEnergy() +ppu->getValue());173 this->increaseHealthMax(ppu->getValue()); 172 174 return true; 173 175 }
Note: See TracChangeset
for help on using the changeset viewer.