Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3531 in orxonox.OLD for orxonox/trunk/src/world_entities/player.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/player.h

    r3471 r3531  
    1818 public:
    1919  Player(bool isFree = false);
    20   ~Player();
     20  virtual ~Player();
     21  void destroy();
    2122 
    2223  virtual void postSpawn();
    2324  virtual void tick(float time);
    2425  virtual void hit(WorldEntity* weapon, Vector loc);
    25   virtual void destroy();
    2626  virtual void collide(WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags);
    2727  virtual void command(Command* cmd);
Note: See TracChangeset for help on using the changeset viewer.