Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 15, 2005, 1:34:32 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: packing the first entities into their lists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/objectmanager/src/util/object_manager.h

    r6120 r6121  
    11/*!
    22 * @file object_manager.h
    3  * @brief Definition of the ... singleton Class
    4 */
     3 * @brief Definition of the ObjectManager.
     4 */
    55
    66#ifndef _OBJECT_MANAGER_H
     
    1515  OM_NULL             =  0,
    1616  OM_DEAD,
     17  OM_DEAD_TICK,
    1718  OM_ENVIRON_NOTICK,
    1819  OM_ENVIRON,
     
    6566class WorldEntity;
    6667
    67 //! A default singleton class.
     68//! A powerfull handler for the Object (WorldEntities) in the World.
    6869class ObjectManager : public BaseObject {
    6970
    7071 public:
    71   virtual ~ObjectManager(void);
    72   /** @returns a Pointer to the only object of this Class */
    73   inline static ObjectManager* getInstance(void) { if (!ObjectManager::singletonRef) ObjectManager::singletonRef = new ObjectManager();  return ObjectManager::singletonRef; }
     72   ObjectManager();
     73   virtual ~ObjectManager();
    7474
    7575  void flush();
     
    8484  static std::list<WorldEntity*>* distanceFromObject(const PNode& center, float radius, ClassID classID);
    8585
    86   void debug(OM_LIST omList) const;
    87   void debug(const char* listName = NULL);
     86  void debug(OM_LIST omList, unsigned int level = 0) const;
     87  void debug(const char* listName = NULL, unsigned int level = 0);
    8888
    8989  static OM_LIST StringToOMList(const char* listName);
     
    9191
    9292 private:
    93   ObjectManager(void);
    94   static ObjectManager* singletonRef;
    95 
    9693  const std::list<BaseObject>*            pNodeList;
    9794
Note: See TracChangeset for help on using the changeset viewer.