Changeset 10539 in orxonox.OLD for trunk/src/world_entities/npcs
- Timestamp:
- Jan 31, 2007, 4:27:32 AM (18 years ago)
- Location:
- trunk/src/world_entities/npcs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/npcs/npc.cc
r10531 r10539 411 411 WorldEntity::draw(); 412 412 } 413 414 // HACK just to make sure they explode as nice as possible :) 415 void NPC::hit( float damage, WorldEntity* killer) 416 { 417 this->setDamage(killer->getDamage()); 418 } -
trunk/src/world_entities/npcs/npc.h
r10531 r10539 37 37 void destroy( /*WorldEntity* killer*/ ); 38 38 39 void hit( float damage, WorldEntity* killer); 40 39 41 private: 40 42 inline void setTeamNumber(int number) { teamNumber=number; }
Note: See TracChangeset
for help on using the changeset viewer.