Changeset 3531 in orxonox.OLD for orxonox/trunk/src/world_entities/world_entity.cc
- Timestamp:
- Mar 13, 2005, 10:50:43 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/world_entity.cc
r3474 r3531 47 47 { 48 48 // if( collisioncluster != NULL) delete collisioncluster; 49 } 49 this->destroy(); 50 } 51 52 /** 53 \brief Function to call if a WorldEntity is destroyed. deletes all alocated memory. 54 */ 55 void WorldEntity::destroy() 56 { 57 58 // delete everything of pNode. 59 static_cast<PNode*>(this)->destroy(); 60 } 61 50 62 51 63 /** … … 156 168 void WorldEntity::hit(WorldEntity* weapon, Vector loc) {} 157 169 158 /**159 \brief this function is called when the entity is to be destroied160 161 This can be called, if eg. something realy bad happens :)162 */163 void WorldEntity::destroy() {}164 170 165 171
Note: See TracChangeset
for help on using the changeset viewer.