Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6071 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Dec 12, 2005, 6:38:23 PM (19 years ago)
Author:
bensch
Message:

trunk: sync

Location:
trunk/src/lib/coord
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/coord/p_node.cc

    r6054 r6071  
    8484PNode::~PNode ()
    8585{
     86  if (this->parent != NULL)
     87   {
     88     this->parent->children.remove(this);
     89     this->parent = NULL;
     90   }
     91
    8692  // remove the Node, delete it's children (if required).
    8793  std::list<PNode*>::iterator tmp = this->children.begin();
     
    95101      delete (*deleteNode);
    96102  }
    97   if (this->parent != NULL)
    98    {
    99      this->parent->children.remove(this);
    100      this->parent = NULL;
    101    }
    102103
    103104  // remove all other allocated memory.
  • trunk/src/lib/coord/p_node.h

    r6070 r6071  
    136136  void removeChild (PNode* child);
    137137  void removeNode();
    138   const std::list<PNode*>& getNodesChildren() const { return this->children; };
    139138
    140139  /** @param parent the new parent of this node */
     
    144143  inline PNode* getParent () const { return this->parent; };
    145144  /** @returns the List of Children of this PNode */
    146  // inline const tList<PNode>* getChildren() const { return this->children; };
     145  const std::list<PNode*>& getNodesChildren() const { return this->children; };
    147146
    148147  void setParentSoft(PNode* parentNode, float bias = 1.0);
Note: See TracChangeset for help on using the changeset viewer.