Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/util/object_manager.h @ 6095

Last change on this file since 6095 was 5795, checked in by bensch, 19 years ago

orxonox/trunk: merged branches/worldEntities back to the trunk svn merge -r5750:HEAD branches/world_entities/ trunk/

File size: 973 bytes
RevLine 
[4838]1/*!
[5629]2 * @file object_manager.h
[4838]3 * @brief Definition of the ... singleton Class
[3655]4*/
5
[5629]6#ifndef _OBJECT_MANAGER_H
7#define _OBJECT_MANAGER_H
[3655]8
9#include "base_object.h"
[5682]10#include <list>
[3655]11
[5405]12// FORWARD DECLARATION
[5795]13class PNode;
14class WorldEntity;
[3655]15
[5682]16class ObjectGroupList
17{
18
19
20
21};
22
23
[3655]24//! A default singleton class.
[5629]25class ObjectManager : public BaseObject {
[3655]26
27 public:
[5629]28  virtual ~ObjectManager(void);
[4838]29  /** @returns a Pointer to the only object of this Class */
[5629]30  inline static ObjectManager* getInstance(void) { if (!ObjectManager::singletonRef) ObjectManager::singletonRef = new ObjectManager();  return ObjectManager::singletonRef; };
[3655]31
[5682]32
[5795]33  static std::list<WorldEntity*>* distanceFromObject(const PNode& center, float radius, ClassID classID);
34
[5682]35  ObjectGroupList* getGroupList( );
36
[3655]37 private:
[5629]38  ObjectManager(void);
39  static ObjectManager* singletonRef;
[5682]40
41  std::list<ObjectGroupList>           groupList;
42
[5795]43  const std::list<BaseObject>*         pNodeList;
[5682]44
[5795]45
[3655]46};
47
[5629]48#endif /* _OBJECT_MANAGER_H */
Note: See TracBrowser for help on using the repository browser.