Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10539 in orxonox.OLD for trunk/src/world_entities/npcs


Ignore:
Timestamp:
Jan 31, 2007, 4:27:32 AM (18 years ago)
Author:
marcscha
Message:

Fixes for weapon systems

Location:
trunk/src/world_entities/npcs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/npcs/npc.cc

    r10531 r10539  
    411411 WorldEntity::draw();
    412412}
     413
     414// HACK just to make sure they explode as nice as possible :)
     415void NPC::hit( float damage, WorldEntity* killer)
     416{
     417  this->setDamage(killer->getDamage());
     418}
  • trunk/src/world_entities/npcs/npc.h

    r10531 r10539  
    3737  void destroy( /*WorldEntity* killer*/ );
    3838
     39  void hit( float damage, WorldEntity* killer);
     40
    3941private:
    4042  inline void setTeamNumber(int number) { teamNumber=number; }
Note: See TracChangeset for help on using the changeset viewer.