Changeset 8854 in orxonox.OLD for branches/multi_player_map/src/world_entities
- Timestamp:
- Jun 28, 2006, 2:42:19 PM (19 years ago)
- Location:
- branches/multi_player_map/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/multi_player_map/src/world_entities/world_entity.cc
r8845 r8854 735 735 * @param damage damage to be dealt 736 736 */ 737 void WorldEntity::hit(float damage )737 void WorldEntity::hit(float damage, WorldEntity* killer) 738 738 { 739 739 this->decreaseHealth(damage); … … 750 750 751 751 if( State::getGameRules() != NULL) 752 State::getGameRules()->registerKill(Kill( NULL, this));752 State::getGameRules()->registerKill(Kill(killer, this)); 753 753 } 754 754 } -
branches/multi_player_map/src/world_entities/world_entity.h
r8832 r8854 94 94 CollisionHandle* getCollisionHandle(CREngine::CRType type) const { return this->collisionHandles[type]; } 95 95 96 virtual void hit(float damage );96 virtual void hit(float damage, WorldEntity* killer); 97 97 virtual void destroy(); 98 98 … … 184 184 std::string modelFileName; //!< model's file name 185 185 int modelFileName_handle; //!< handle for syncing var 186 187 int list_write; //!< entity's list 186 187 int list_write; //!< entity's list 188 188 int list_handle; //!< handle for list changes 189 189
Note: See TracChangeset
for help on using the changeset viewer.