Changeset 6077 in orxonox.OLD for trunk/src/lib/lang/class_list.cc
- Timestamp:
- Dec 13, 2005, 2:53:22 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/lang/class_list.cc
r5885 r6077 37 37 * Creates a new ClassList 38 38 */ 39 ClassList::ClassList( const long&classID, const char* className)39 ClassList::ClassList(ClassID classID, const char* className) 40 40 { 41 41 this->className = className; … … 94 94 if (objectPointer->isA((*cl).classID)) 95 95 { 96 std::list<BaseObject*>::iterator bo; 97 for (bo = (*cl).objectList.begin(); bo != (*cl).objectList.end(); bo++) 98 { 99 if ((*bo) == objectPointer) 100 { 96 std::list<BaseObject*>::iterator bo = std::find ((*cl).objectList.begin(), (*cl).objectList.end(), objectPointer); 97 if (bo != (*cl).objectList.end()) 101 98 (*cl).objectList.erase(bo); 102 break;103 }104 }105 99 } 106 100 } … … 175 169 } 176 170 177 171 /** 172 * !!PRIVATE!! 173 * @param classID the ClassID to search for 174 * @returns the ClassList with classID as specifyer, or NULL if not 175 */ 178 176 ClassList* ClassList::getClassList(ClassID classID) 179 177 { … … 183 181 184 182 183 /** 184 * !!PRIVATE!! 185 * @param className the ClassName to search for 186 * @returns the ClassList with className as specifyer, or NULL if not 187 */ 185 188 ClassList* ClassList::getClassList(const char* className) 186 189 { … … 288 291 * @return the ClassID. CL_NULL, if the class was not found. 289 292 */ 290 longClassList::StringToID(const char* className)293 ClassID ClassList::StringToID(const char* className) 291 294 { 292 295 ClassList* cl = ClassList::getClassList(className); … … 314 317 * @param classID the class that should be displayed (if CL_NULL (default) all classes will be displayed) 315 318 */ 316 void ClassList::debug(unsigned int debugLevel, longclassID)319 void ClassList::debug(unsigned int debugLevel, ClassID classID) 317 320 { 318 321 if (debugLevel > 3)
Note: See TracChangeset
for help on using the changeset viewer.