Changeset 5794 in orxonox.OLD for branches/world_entities/src/util
- Timestamp:
- Nov 27, 2005, 3:50:20 PM (19 years ago)
- Location:
- branches/world_entities/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/world_entities/src/util/object_manager.cc
r5782 r5794 53 53 * returns a new List with a list of WorldEntities of distance Radius from center 54 54 */ 55 conststd::list<WorldEntity*>* ObjectManager::distanceFromObject(const PNode& center, float radius, ClassID classID)55 std::list<WorldEntity*>* ObjectManager::distanceFromObject(const PNode& center, float radius, ClassID classID) 56 56 { 57 57 const tList<BaseObject>* objectList = ClassList::getList(classID); … … 61 61 62 62 tIterator<BaseObject>* iter = objectList->getIterator(); 63 PNode* tmp = dynamic_cast<PNode*>(iter->firstElement());63 WorldEntity* tmp = dynamic_cast<WorldEntity*>(iter->firstElement()); 64 64 while (tmp != NULL) 65 65 { … … 67 67 newList->push_back(dynamic_cast<WorldEntity*>(tmp)); 68 68 69 tmp = dynamic_cast< PNode*>(iter->nextElement());69 tmp = dynamic_cast<WorldEntity*>(iter->nextElement()); 70 70 } 71 71 delete iter; -
branches/world_entities/src/util/object_manager.h
r5782 r5794 31 31 32 32 33 conststd::list<WorldEntity*>* distanceFromObject(const PNode& center, float radius, ClassID classID);33 static std::list<WorldEntity*>* distanceFromObject(const PNode& center, float radius, ClassID classID); 34 34 35 35 ObjectGroupList* getGroupList( );
Note: See TracChangeset
for help on using the changeset viewer.