Changeset 6436 in orxonox.OLD for trunk/src/world_entities/playable.cc
- Timestamp:
- Jan 8, 2006, 2:27:29 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/playable.cc
r6241 r6436 52 52 // the reference to the Current Player is NULL, because we dont have one at the beginning. 53 53 this->currentPlayer = NULL; 54 } 55 56 /** 57 * @brief helps us colliding Playables 58 */ 59 void Playable::collidesWith(WorldEntity* entity, const Vector& location) 60 { 61 if (entity->isA(CL_PROJECTILE)) 62 this->removeEnergy(entity->getEnergy()); 63 64 // EXTREME HACK 65 if (this->getEnergy() == 0.0f) 66 this->deactivateNode(); 54 67 } 55 68
Note: See TracChangeset
for help on using the changeset viewer.