Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 18, 2005, 12:32:35 PM (18 years ago)
Author:
bensch
Message:

we: added grid for ObjectManager

File:
1 copied

Legend:

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

    r5628 r5629  
    11/*!
    2  * @file proto_singleton.h
     2 * @file object_manager.h
    33 * @brief Definition of the ... singleton Class
    44*/
    55
    6 #ifndef _PROTO_SINGLETON_H
    7 #define _PROTO_SINGLETON_H
     6#ifndef _OBJECT_MANAGER_H
     7#define _OBJECT_MANAGER_H
    88
    99#include "base_object.h"
     
    1212
    1313//! A default singleton class.
    14 class ProtoSingleton : public BaseObject {
     14class ObjectManager : public BaseObject {
    1515
    1616 public:
    17   virtual ~ProtoSingleton(void);
     17  virtual ~ObjectManager(void);
    1818  /** @returns a Pointer to the only object of this Class */
    19   inline static ProtoSingleton* getInstance(void) { if (!singletonRef) singletonRef = new ProtoSingleton();  return singletonRef; };
     19  inline static ObjectManager* getInstance(void) { if (!ObjectManager::singletonRef) ObjectManager::singletonRef = new ObjectManager();  return ObjectManager::singletonRef; };
    2020
    2121 private:
    22   ProtoSingleton(void);
    23   static ProtoSingleton* singletonRef;
     22  ObjectManager(void);
     23  static ObjectManager* singletonRef;
    2424};
    2525
    26 #endif /* _PROTO_SINGLETON_H */
     26#endif /* _OBJECT_MANAGER_H */
Note: See TracChangeset for help on using the changeset viewer.