Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 13, 2005, 10:50:43 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: all WorldEntities/PWodes now destroy all date they alocate.

this is done with a virtual destructor:
if PNode is deleted it calls for the delete of the virtual destructor, and deletes the data of it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/primitive.cc

    r3526 r3531  
    3939}
    4040
     41void Primitive::destroy ()
     42{
     43
     44
     45  static_cast<WorldEntity*>(this)->destroy();
     46}
     47
     48
    4149void Primitive::tick (float time)
    4250{
     
    4856void Primitive::hit (WorldEntity* weapon, Vector loc) {}
    4957
    50 void Primitive::destroy () {}
    5158
    5259void Primitive::collide (WorldEntity* other,  Uint32 ownhitflags, Uint32 otherhitflags) {}
Note: See TracChangeset for help on using the changeset viewer.