- Timestamp:
- Jan 8, 2006, 2:27:29 AM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 3 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 -
trunk/src/world_entities/playable.h
r6241 r6436 38 38 void detachCamera(); 39 39 40 virtual void collidesWith(WorldEntity* entity, const Vector& location); 40 41 virtual void process(const Event &event) = 0; 41 42 -
trunk/src/world_entities/space_ships/space_ship.cc
r6430 r6436 269 269 void SpaceShip::collidesWith(WorldEntity* entity, const Vector& location) 270 270 { 271 Playable::collidesWith(entity, location); 271 272 if (entity->isA(CL_TURRET_POWER_UP) && entity != ref) 272 273 {
Note: See TracChangeset
for help on using the changeset viewer.