Changeset 6685 in orxonox.OLD for branches/network/src/lib/coord
- Timestamp:
- Jan 25, 2006, 1:35:29 AM (19 years ago)
- Location:
- branches/network/src/lib/coord
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/coord/p_node.cc
r6682 r6685 488 488 this->children.push_back(child); 489 489 child->parentCoorChanged(); 490 491 // if(this->getUniqueID() == NET_UID_UNASSIGNED) 492 // { 493 // PRINTF(1)("Adding to an UNASSIGNED PNode - looking for next assigned Node\n"); 494 // PNode* node = this->seekNextAssignedPNode(this); 495 // if( node == NULL) 496 // PRINTF(1)(" Got NULL - Is this the NULLParent - uid %i\n", this->getUniqueID()); 497 // else 498 // PRINTF(1)(" Found next assigned node: %i\n", node->getUniqueID()); 499 // } 490 500 } 491 501 else … … 496 506 child->parentCoorChanged(); 497 507 } 508 } 509 510 511 PNode* PNode::seekNextAssignedPNode(PNode* node) const 512 { 513 PNode* tmpNode = node->parent; 514 printf("entering seek PNode loop for name: %s, uid: %i\n", node->getName(), node->getUniqueID()); 515 if(tmpNode) 516 printf(" @node name: %s, uid: %d\n", tmpNode->getName(), tmpNode->getUniqueID()); 517 while( tmpNode != NULL && tmpNode->getUniqueID() == NET_UID_UNASSIGNED) 518 { 519 printf(" @node name: %s, uid: %d\n", tmpNode->getName(), tmpNode->getUniqueID()); 520 tmpNode = tmpNode->parent; 521 } 522 printf("leaving PNode loop\n\n"); 523 524 return tmpNode; 498 525 } 499 526 -
branches/network/src/lib/coord/p_node.h
r6634 r6685 147 147 void removeNode(); 148 148 149 PNode* seekNextAssignedPNode(PNode* node) const; 150 149 151 /** @param parent the new parent of this node */ 150 152 inline void setParent (PNode* parent) { parent->addChild(this); };
Note: See TracChangeset
for help on using the changeset viewer.