Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3277 in orxonox.OLD for orxonox/branches/parenting/src/p_node.cc


Ignore:
Timestamp:
Dec 25, 2004, 1:44:31 AM (19 years ago)
Author:
patrick
Message:

orxonox/branches/parenting: worldentity is now derived from parentnode, pNode added into the world class, not yet used activly.. this will be a mess…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/parenting/src/p_node.cc

    r3276 r3277  
    6969PNode::~PNode ()
    7070{
    71   this->children->destroy();
    72   delete this->children;
     71  /*
     72  delete &this->children;
     73  delete &this->relCoordinate;
     74  delete &this->absCoordinate;
     75  delete &this->relDirection;
     76  delete &this->absDirection;
     77  */
     78  this->parent = NULL;
     79  /* there is currently a problem with cleaning up - fix*/
     80}
     81
     82
     83/**
     84   \brief deletes the hole pnode tree
     85
     86   cleans up all pnodes
     87*/
     88void PNode::destroy ()
     89{
     90  PNode* pn = this->children->enumerate();
     91  while( pn != NULL)
     92    {
     93      pn->destroy ();
     94      pn = this->children->nextElement();
     95    }
     96  this->children->destroy ();
    7397}
    7498
Note: See TracChangeset for help on using the changeset viewer.