Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9869 in orxonox.OLD for trunk/src/util/object_manager.h


Ignore:
Timestamp:
Oct 3, 2006, 12:19:30 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/object_manager.h

    r9656 r9869  
    7373class ObjectManager : public BaseObject
    7474{
     75  ObjectListDeclaration(ObjectManager);
    7576public:
    7677  typedef std::list<WorldEntity*> EntityList;      //!< A type definition to make it easy to use EntityLists.
     
    8687
    8788  /** @returns the List (listnumber) of objects. @param listNumber the List to get. */
    88   EntityList& getObjectList(OM_LIST listNumber) { return this->objectLists[listNumber]; }
     89  EntityList& getEntityList(OM_LIST listNumber) { return this->entityLists[listNumber]; }
    8990  /** @returns a constant LIST of Objects. @param listNumber the objectList to returns */
    90   const EntityList& getObjectList(OM_LIST listNumber) const { return this->objectLists[listNumber]; }
     91  const EntityList& getEntityList(OM_LIST listNumber) const { return this->entityLists[listNumber]; }
    9192
    92   static void distanceFromObject(EntityList& entities, const PNode& center, float radius, ClassID classID);
     93  template <class T> static void distanceFromObject(EntityList& entities, const PNode& center, float radius, ObjectList<T>& list);
    9394
    9495  void debug(OM_LIST omList, unsigned int level = 0) const;
     
    111112  const std::list<BaseObject>*            pNodeList;                //!< The List of PNodes.
    112113
    113   EntityList                              objectLists[OM_SIZE];     //!< The ObjectLists.
     114  EntityList                              entityLists[OM_SIZE];     //!< The ObjectLists.
    114115
    115116  static const std::string                objectManagerListNames[]; //!< Names of all the lists
Note: See TracChangeset for help on using the changeset viewer.