Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 26, 2006, 11:44:49 AM (17 years ago)
Author:
nicolasc
Message:

moved damage attr to proteced; collidesWith checks against SpaceShip and does some damage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/projectiles/projectile.cc

    r9958 r9959  
    122122
    123123
    124 
    125 void Projectile::collidesWith (WorldEntity* entity, const Vector& location)
     124void Projectile::collidesWith (SpaceShip* target, const Vector& location)
    126125{
    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);
    130128}
    131129
Note: See TracChangeset for help on using the changeset viewer.