Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 24, 2006, 11:58:23 PM (17 years ago)
Author:
nicolasc
Message:

updated damage() to use tick
added collidesWith() to Projectile

File:
1 edited

Legend:

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

    r9953 r9957  
    122122
    123123
     124
     125void Projectile::collidesWith (WorldEntity* entity, const Vector& location)
     126{
     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);
     130}
     131
    124132/**
    125133 * signal tick, time dependent things will be handled here
     
    145153}
    146154
    147 
    148 
    149155int Projectile::getPhysDamage () { return this->physDamage; }
    150156
Note: See TracChangeset for help on using the changeset viewer.