Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3531 in orxonox.OLD for orxonox/trunk/src/world_entities/player.cc


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

    r3526 r3531  
    3737Player::~Player ()
    3838{
     39  this->destroy();
     40}
     41
     42/**
     43   \brief deletes all allocated memory of the Player
     44*/
     45void Player::destroy ()
     46{
    3947  delete this->model;
     48
     49  static_cast<WorldEntity*>(this)->destroy();
    4050}
    4151
     
    7282}
    7383
    74 /**
    75    \brief action that happens when the player is destroyed.
    76 */
    77 void Player::destroy ()
    78 {
    79 }
    8084
    8185/**
Note: See TracChangeset for help on using the changeset viewer.