Last change
on this file since 8465 was
5140,
checked in by bensch, 19 years ago
|
orxonox/trunk: now all new commands get subscribed
|
File size:
1.5 KB
|
Rev | Line | |
---|
[4744] | 1 | /* |
---|
[3655] | 2 | orxonox - the future of 3D-vertical-scrollers |
---|
| 3 | |
---|
| 4 | Copyright (C) 2004 orx |
---|
| 5 | |
---|
| 6 | This program is free software; you can redistribute it and/or modify |
---|
| 7 | it under the terms of the GNU General Public License as published by |
---|
| 8 | the Free Software Foundation; either version 2, or (at your option) |
---|
| 9 | any later version. |
---|
| 10 | |
---|
| 11 | ### File Specific: |
---|
| 12 | main-programmer: ... |
---|
| 13 | co-programmer: ... |
---|
| 14 | */ |
---|
| 15 | |
---|
| 16 | //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY |
---|
| 17 | |
---|
| 18 | #include "proto_singleton.h" |
---|
| 19 | |
---|
| 20 | using namespace std; |
---|
| 21 | |
---|
| 22 | |
---|
| 23 | /** |
---|
[4838] | 24 | * standard constructor |
---|
| 25 | */ |
---|
[4744] | 26 | ProtoSingleton::ProtoSingleton () |
---|
[3655] | 27 | { |
---|
[4744] | 28 | this->setClassID(CL_PROTO_ID, "ProtoSingleton"); |
---|
[4839] | 29 | this->setName("ProtoSingleton"); |
---|
[3655] | 30 | |
---|
[4320] | 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 |
---|
[4744] | 34 | 2. Add the class identifier to ./src/class_id.h eg. CL_NEW_CLASS |
---|
[5140] | 35 | !!!!!!!!!! IMPORTANT FOR SINGLETON !!!!!!!!!!!!!!!! |
---|
| 36 | 3. SingleTon MUST be CL_NEW_CLASS = 0x00000fxx |
---|
[4320] | 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 |
---|
[4744] | 41 | make many objects of your class, like a weapon bullet. |
---|
[4320] | 42 | */ |
---|
[3655] | 43 | } |
---|
| 44 | |
---|
| 45 | /** |
---|
[4838] | 46 | * the singleton reference to this class |
---|
| 47 | */ |
---|
[3655] | 48 | ProtoSingleton* ProtoSingleton::singletonRef = NULL; |
---|
| 49 | |
---|
| 50 | /** |
---|
[4838] | 51 | @brief standard deconstructor |
---|
| 52 | */ |
---|
[4744] | 53 | ProtoSingleton::~ProtoSingleton () |
---|
[3655] | 54 | { |
---|
| 55 | ProtoSingleton::singletonRef = NULL; |
---|
| 56 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.