Changeset 9686 in orxonox.OLD for branches/new_class_id/src/lib/lang/base_object.cc
- Timestamp:
- Aug 22, 2006, 2:36:54 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/lang/base_object.cc
r9684 r9686 95 95 } 96 96 97 98 /** 99 * @brief Seeks in the Inheritance if it matches objectList. 100 * @param objectList The ObjectList this should be a member of (by Pointer-comparison). 101 * @return True if found, false if not. 102 */ 103 bool BaseObject::isA(const NewClassID& classID) const 104 { 105 ClassList::const_iterator it; 106 for (it = this->_classes.begin(); it != this->_classes.end(); ++it) 107 if (*(*it)._objectList == classID) 108 return true; 109 return false; 110 } 111 97 112 /** 98 113 * @brief Seeks in the Inheritance if it matches objectList.
Note: See TracChangeset
for help on using the changeset viewer.