Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5794 in orxonox.OLD for branches/world_entities/src/util


Ignore:
Timestamp:
Nov 27, 2005, 3:50:20 PM (19 years ago)
Author:
bensch
Message:

we: sync

Location:
branches/world_entities/src/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/world_entities/src/util/object_manager.cc

    r5782 r5794  
    5353 * returns a new List with a list of WorldEntities of distance Radius from center
    5454 */
    55 const std::list<WorldEntity*>* ObjectManager::distanceFromObject(const PNode& center, float radius, ClassID classID)
     55std::list<WorldEntity*>* ObjectManager::distanceFromObject(const PNode& center, float radius, ClassID classID)
    5656{
    5757  const tList<BaseObject>* objectList = ClassList::getList(classID);
     
    6161
    6262    tIterator<BaseObject>* iter = objectList->getIterator();
    63     PNode* tmp = dynamic_cast<PNode*>(iter->firstElement());
     63    WorldEntity* tmp = dynamic_cast<WorldEntity*>(iter->firstElement());
    6464    while (tmp != NULL)
    6565    {
     
    6767        newList->push_back(dynamic_cast<WorldEntity*>(tmp));
    6868
    69       tmp = dynamic_cast<PNode*>(iter->nextElement());
     69      tmp = dynamic_cast<WorldEntity*>(iter->nextElement());
    7070    }
    7171    delete iter;
  • branches/world_entities/src/util/object_manager.h

    r5782 r5794  
    3131
    3232
    33   const std::list<WorldEntity*>* distanceFromObject(const PNode& center, float radius, ClassID classID);
     33  static std::list<WorldEntity*>* distanceFromObject(const PNode& center, float radius, ClassID classID);
    3434
    3535  ObjectGroupList* getGroupList( );
Note: See TracChangeset for help on using the changeset viewer.