Changeset 9684 in orxonox.OLD for branches/new_class_id/src/lib/coord/p_node.cc
- Timestamp:
- Aug 22, 2006, 1:34:31 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/coord/p_node.cc
r9656 r9684 19 19 20 20 #include "util/loading/load_param.h" 21 #include "class_list.h"22 21 23 22 #include "netdefs.h" … … 38 37 : BaseObject(), Synchronizeable() 39 38 { 40 this-> setClassID(CL_PARENT_NODE, "PNode");39 this->registerObject(this, PNode::_objectList); 41 40 42 41 this->bRelCoorChanged = true; … … 541 540 void PNode::addChild (const std::string& childName) 542 541 { 543 PNode* childNode = dynamic_cast<PNode*>(ClassList::getObject(childName, CL_PARENT_NODE));542 PNode* childNode = PNode::objectList().getObject(childName); 544 543 // PRINTF(0)("Adding the Child: %s to: %s\n", childName, this->getName()); 545 544 // assert( childNode != NULL ); … … 625 624 void PNode::setParent (const std::string& parentName) 626 625 { 627 PNode* parentNode = dynamic_cast<PNode*>(ClassList::getObject(parentName, CL_PARENT_NODE));626 PNode* parentNode = PNode::objectList().getObject(parentName); 628 627 if (parentNode != NULL) 629 628 parentNode->addChild(this); … … 681 680 void PNode::setParentSoft(const std::string& parentName, float bias) 682 681 { 683 PNode* parentNode = dynamic_cast<PNode*>(ClassList::getObject(parentName, CL_PARENT_NODE));682 PNode* parentNode = PNode::objectList().getObject(parentName); 684 683 if (parentNode != NULL) 685 684 this->setParentSoft(parentNode, bias); … … 731 730 { 732 731 PNode::nullParent = new PNode(NULL, PNODE_PARENT_MODE_DEFAULT | PNODE_REPARENT_TO_NULL); 733 PNode::nullParent->setClassID(CL_NULL_PARENT, "NullParent");732 //PNode::nullParent->registerObject(, CL_NULL_PARENT); 734 733 PNode::nullParent->setName("NullParent"); 735 734 PNode::nullParent->setSynchronized(true);
Note: See TracChangeset
for help on using the changeset viewer.