Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/world_entities/src/util/object_manager.h @ 5717

Last change on this file since 5717 was 5682, checked in by bensch, 19 years ago

we: Base for NPC

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