Changeset 7221 in orxonox.OLD for trunk/src/lib/coord/p_node.h
- Timestamp:
- Mar 15, 2006, 3:10:45 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/coord/p_node.h
r7076 r7221 143 143 // PARENTING // 144 144 void addChild (PNode* child); 145 void addChild (const char*childName);145 void addChild (const std::string& childName); 146 146 void removeChild (PNode* child); 147 147 void removeNode(); … … 151 151 /** @param parent the new parent of this node */ 152 152 inline void setParent (PNode* parent) { parent->addChild(this); }; 153 void setParent (const char*parentName);153 void setParent (const std::string& parentName); 154 154 /** @returns the parent of this PNode */ 155 155 inline PNode* getParent () const { return this->parent; }; … … 158 158 159 159 void setParentSoft(PNode* parentNode, float bias = 1.0); 160 void setParentSoft(const char*parentName, float bias = 1.0);160 void setParentSoft(const std::string& parentName, float bias = 1.0); 161 161 162 162 // PARENTING_MODE AND OTHER FLAGS // 163 163 void setParentMode (PARENT_MODE parentMode); 164 void setParentMode (const char*parentingMode);164 void setParentMode (const std::string& parentingMode); 165 165 /** @returns the Parenting mode of this node */ 166 166 int getParentMode() const { return 0x000f & this->parentMode; }; … … 183 183 184 184 // HELPER_FUNCTIONS // 185 static const char* parentingModeTo Char(int parentingMode);186 static PARENT_MODE charToParentingMode(const char*parentingMode);185 static const char* parentingModeToString(int parentingMode); 186 static PARENT_MODE stringToParentingMode(const std::string& parentingMode); 187 187 float distance(const PNode* node) const { return (this->getAbsCoor() - node->getAbsCoor()).len(); }; 188 188
Note: See TracChangeset
for help on using the changeset viewer.