Changeset 4435 in orxonox.OLD for orxonox/trunk/src/lib/coord
- Timestamp:
- Jun 1, 2005, 11:40:19 AM (20 years ago)
- Location:
- orxonox/trunk/src/lib/coord
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/coord/p_node.cc
r4145 r4435 85 85 delete this->children; 86 86 this->parent = NULL; 87 delete []this->objectName;88 89 87 } 90 88 … … 98 96 this->bAbsDirChanged = false; 99 97 this->parent = parent; 100 this->objectName = NULL;101 98 } 102 99 … … 406 403 this->lastAbsCoordinate = this->absCoordinate; 407 404 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); 409 406 410 407 … … 518 515 } 519 516 520 521 /**522 \brief set the name of the node523 524 for debug purposes realy usefull, not used to work properly525 */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 node535 */536 const char* PNode::getName ()537 {538 return this->objectName;539 }540 -
orxonox/trunk/src/lib/coord/p_node.h
r4382 r4435 99 99 void processTick (float dt); 100 100 101 void setName (const char* newName);102 const char* getName ();103 104 101 void debug (); 105 102 106 103 protected: 107 104 float timeStamp; //!< this the timeStamp of when the abs{Coordinat, Direction} has been calculated 108 char* objectName; //!< The name of the Object109 105 bool bAbsCoorChanged; //!< If Absolute Coordinate has changed since last time we checked 110 106 bool bRelCoorChanged; //!< If Relative Coordinate has changed since last time we checked
Note: See TracChangeset
for help on using the changeset viewer.