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/world_entity.h

    r3474 r3531  
    2121  WorldEntity (bool isFree = false);
    2222  virtual ~WorldEntity ();
     23  void destroy ();
     24
    2325
    2426  OBJModel* model;                  //!< The model that should be loaded for this entity.
     
    3436  virtual void tick (float time);
    3537  virtual void hit (WorldEntity* weapon, Vector loc);
    36   virtual void destroy ();
    3738  virtual void collide (WorldEntity* other,  Uint32 ownhitflags, Uint32 otherhitflags);
    3839  virtual void command (Command* cmd);
Note: See TracChangeset for help on using the changeset viewer.