Changeset 9957 in orxonox.OLD for branches/playability/src/world_entities/projectiles
- Timestamp:
- Nov 24, 2006, 11:58:23 PM (18 years ago)
- Location:
- branches/playability/src/world_entities/projectiles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/projectile.cc
r9953 r9957 122 122 123 123 124 125 void 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 124 132 /** 125 133 * signal tick, time dependent things will be handled here … … 145 153 } 146 154 147 148 149 155 int Projectile::getPhysDamage () { return this->physDamage; } 150 156 -
branches/playability/src/world_entities/projectiles/projectile.h
r9953 r9957 44 44 virtual void destroy (WorldEntity* killer); 45 45 46 virtual void collidesWith (WorldEntity* entity, const Vector& location); //!< collision handler as used in diverse weapons 47 46 48 virtual void tick (float dt); 47 49 /** @brief convenience function
Note: See TracChangeset
for help on using the changeset viewer.