Changeset 6071 in orxonox.OLD for trunk/src/lib/coord
- Timestamp:
- Dec 12, 2005, 6:38:23 PM (19 years ago)
- Location:
- trunk/src/lib/coord
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/coord/p_node.cc
r6054 r6071 84 84 PNode::~PNode () 85 85 { 86 if (this->parent != NULL) 87 { 88 this->parent->children.remove(this); 89 this->parent = NULL; 90 } 91 86 92 // remove the Node, delete it's children (if required). 87 93 std::list<PNode*>::iterator tmp = this->children.begin(); … … 95 101 delete (*deleteNode); 96 102 } 97 if (this->parent != NULL)98 {99 this->parent->children.remove(this);100 this->parent = NULL;101 }102 103 103 104 // remove all other allocated memory. -
trunk/src/lib/coord/p_node.h
r6070 r6071 136 136 void removeChild (PNode* child); 137 137 void removeNode(); 138 const std::list<PNode*>& getNodesChildren() const { return this->children; };139 138 140 139 /** @param parent the new parent of this node */ … … 144 143 inline PNode* getParent () const { return this->parent; }; 145 144 /** @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; }; 147 146 148 147 void setParentSoft(PNode* parentNode, float bias = 1.0);
Note: See TracChangeset
for help on using the changeset viewer.