Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4435 in orxonox.OLD for orxonox/trunk/src/lib/coord/p_node.cc


Ignore:
Timestamp:
Jun 1, 2005, 11:40:19 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: objectName is now a property of BaseObject, because pNode has nothing to do with a name

File:
1 edited

Legend:

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

    r4145 r4435  
    8585  delete this->children;
    8686  this->parent = NULL;
    87   delete []this->objectName;
    88 
    8987}
    9088
     
    9896  this->bAbsDirChanged = false;
    9997  this->parent = parent;
    100   this->objectName = NULL;
    10198}
    10299
     
    406403  this->lastAbsCoordinate = this->absCoordinate;
    407404
    408   PRINTF(4)("PNode::update - %s - (%f, %f, %f)\n", this->objectName, this->absCoordinate.x, this->absCoordinate.y, this->absCoordinate.z);
     405  PRINTF(4)("PNode::update - %s - (%f, %f, %f)\n", this->getName(), this->absCoordinate.x, this->absCoordinate.y, this->absCoordinate.z);
    409406
    410407
     
    518515}
    519516
    520 
    521 /**
    522   \brief set the name of the node
    523 
    524   for debug purposes realy usefull, not used to work properly
    525 */
    526 void PNode::setName (const char* newName)
    527 {
    528   this->objectName = new char[strlen(newName)+1];
    529   strcpy(this->objectName,newName);
    530 }
    531 
    532 
    533 /**
    534   \brief gets the name of the node
    535 */
    536 const char* PNode::getName ()
    537 {
    538   return this->objectName;
    539 }
    540 
Note: See TracChangeset for help on using the changeset viewer.