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.cc

    r5628 r5629  
    1616//#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
    1717
    18 #include "proto_singleton.h"
     18#include "object_manager.h"
    1919
    2020using namespace std;
     
    2424 * standard constructor
    2525 */
    26 ProtoSingleton::ProtoSingleton ()
     26ObjectManager::ObjectManager ()
    2727{
    28    this->setClassID(CL_PROTO_ID, "ProtoSingleton");
    29    this->setName("ProtoSingleton");
    30 
    31    /* If you make a new class, what is most probably the case when you write this file
    32       don't forget to:
    33        1. Add the new file new_class.cc to the ./src/Makefile.am
    34        2. Add the class identifier to ./src/class_id.h eg. CL_NEW_CLASS
    35    !!!!!!!!!! IMPORTANT FOR SINGLETON !!!!!!!!!!!!!!!!
    36         3. SingleTon MUST be CL_NEW_CLASS = 0x00000fxx
    37 
    38       Advanced Topics:
    39       - if you want to let your object be managed via the ObjectManager make sure to read
    40         the object_manager.h header comments. You will use this most certanly only if you
    41         make many objects of your class, like a weapon bullet.
    42    */
     28   this->setClassID(CL_OBJECT_MANAGER, "ObjectManager");
     29   this->setName("ObjectManager");
    4330}
    4431
     
    4633 *  the singleton reference to this class
    4734 */
    48 ProtoSingleton* ProtoSingleton::singletonRef = NULL;
     35ObjectManager* ObjectManager::singletonRef = NULL;
    4936
    5037/**
    5138   @brief standard deconstructor
    5239 */
    53 ProtoSingleton::~ProtoSingleton ()
     40ObjectManager::~ObjectManager ()
    5441{
    55   ProtoSingleton::singletonRef = NULL;
     42  ObjectManager::singletonRef = NULL;
    5643}
Note: See TracChangeset for help on using the changeset viewer.