Changeset 7219 in orxonox.OLD for branches/std/src/lib/coord/p_node.cc
- Timestamp:
- Mar 12, 2006, 5:14:44 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/lib/coord/p_node.cc
r7216 r7219 680 680 * @param bias the speed to iterate to this new Positions 681 681 */ 682 void PNode::setParentSoft(const char*parentName, float bias)682 void PNode::setParentSoft(const std::string& parentName, float bias) 683 683 { 684 684 PNode* parentNode = dynamic_cast<PNode*>(ClassList::getObject(parentName, CL_PARENT_NODE)); … … 701 701 void PNode::setParentMode (const std::string& parentingMode) 702 702 { 703 this->setParentMode(PNode:: charToParentingMode(parentingMode));703 this->setParentMode(PNode::stringToParentingMode(parentingMode)); 704 704 } 705 705 … … 927 927 this->getAbsDirV().y, 928 928 this->getAbsDirV().z, 929 this->parentingModeTo Char(parentMode),929 this->parentingModeToString(parentMode), 930 930 childNodeCount); 931 931 if (depth >= 2 || depth == 0) … … 1049 1049 * @return the converted string 1050 1050 */ 1051 const char* PNode::parentingModeTo Char(int parentingMode)1051 const char* PNode::parentingModeToString(int parentingMode) 1052 1052 { 1053 1053 if (parentingMode == PNODE_LOCAL_ROTATE) … … 1068 1068 * @return the int corresponding to the named parentingMode 1069 1069 */ 1070 PARENT_MODE PNode:: charToParentingMode(const std::string& parentingMode)1070 PARENT_MODE PNode::stringToParentingMode(const std::string& parentingMode) 1071 1071 { 1072 1072 if (parentingMode == "local-rotate")
Note: See TracChangeset
for help on using the changeset viewer.