Changeset 9959 in orxonox.OLD for branches/playability/src/world_entities/projectiles/projectile.cc
- Timestamp:
- Nov 26, 2006, 11:44:49 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/projectile.cc
r9958 r9959 122 122 123 123 124 125 void Projectile::collidesWith (WorldEntity* entity, const Vector& location) 124 void Projectile::collidesWith (SpaceShip* target, const Vector& location) 126 125 { 127 //if (entity->isA(CL_SPACE_SHIP)) /* FIXME make sure that entity is a spaceship*/ 128 // entity->damage(this->physDamage, this->elecDamage); /* and do some damage*/ 129 this->destroy(entity); 126 target->damage(this->physDamage, this->elecDamage); 127 this->destroy(target); 130 128 } 131 129
Note: See TracChangeset
for help on using the changeset viewer.