Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3531 in orxonox.OLD for orxonox/trunk/src/world_entities/primitive.h


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

    r3524 r3531  
    1212 public:
    1313  Primitive (PRIMITIVE_FORM form);
    14   ~Primitive ();
    15  
     14  virtual ~Primitive ();
     15  void destroy(void);
     16
    1617  virtual void tick (float time);
    1718  virtual void hit (WorldEntity* weapon, Vector loc);
    18   virtual void destroy ();
    1919  virtual void collide (WorldEntity* other,  Uint32 ownhitflags, Uint32 otherhitflags);
    2020  virtual void draw ();
Note: See TracChangeset for help on using the changeset viewer.