Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 22, 2006, 1:34:31 AM (18 years ago)
Author:
bensch
Message:

orxonox/branches/new_class_id: slowly but surely reimplementing to the new groove… way to go

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/coord/p_node.cc

    r9656 r9684  
    1919
    2020#include "util/loading/load_param.h"
    21 #include "class_list.h"
    2221
    2322#include "netdefs.h"
     
    3837  : BaseObject(), Synchronizeable()
    3938{
    40   this->setClassID(CL_PARENT_NODE, "PNode");
     39  this->registerObject(this, PNode::_objectList);
    4140
    4241  this->bRelCoorChanged = true;
     
    541540void PNode::addChild (const std::string& childName)
    542541{
    543   PNode* childNode = dynamic_cast<PNode*>(ClassList::getObject(childName, CL_PARENT_NODE));
     542  PNode* childNode = PNode::objectList().getObject(childName);
    544543  //  PRINTF(0)("Adding the Child: %s to: %s\n", childName, this->getName());
    545544  //  assert( childNode != NULL );
     
    625624void PNode::setParent (const std::string& parentName)
    626625{
    627   PNode* parentNode = dynamic_cast<PNode*>(ClassList::getObject(parentName, CL_PARENT_NODE));
     626  PNode* parentNode = PNode::objectList().getObject(parentName);
    628627  if (parentNode != NULL)
    629628    parentNode->addChild(this);
     
    681680void PNode::setParentSoft(const std::string& parentName, float bias)
    682681{
    683   PNode* parentNode = dynamic_cast<PNode*>(ClassList::getObject(parentName, CL_PARENT_NODE));
     682  PNode* parentNode = PNode::objectList().getObject(parentName);
    684683  if (parentNode != NULL)
    685684    this->setParentSoft(parentNode, bias);
     
    731730  {
    732731    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);
    734733    PNode::nullParent->setName("NullParent");
    735734    PNode::nullParent->setSynchronized(true);
Note: See TracChangeset for help on using the changeset viewer.