Rev | Line | |
---|
[4744] | 1 | /* |
---|
[1853] | 2 | orxonox - the future of 3D-vertical-scrollers |
---|
| 3 | |
---|
[9659] | 4 | Copyright (C) 2006 orx |
---|
[1853] | 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. |
---|
[1855] | 10 | |
---|
| 11 | ### File Specific: |
---|
[9659] | 12 | main-programmer: Benjamin Grauer |
---|
[1855] | 13 | co-programmer: ... |
---|
[1853] | 14 | */ |
---|
| 15 | |
---|
[3955] | 16 | //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ |
---|
[1853] | 17 | |
---|
[9716] | 18 | #include "class_id.h" |
---|
| 19 | #include "object_list.h" |
---|
[9698] | 20 | |
---|
[9709] | 21 | /** |
---|
| 22 | * @brief a Default Constructor. |
---|
| 23 | * this Always points to the ID of the NullClass. |
---|
| 24 | */ |
---|
[9715] | 25 | ClassID::ClassID() |
---|
[9698] | 26 | { |
---|
[9709] | 27 | NullClass::acquireID(this->_id, this->_name); |
---|
[9698] | 28 | }; |
---|
| 29 | |
---|
[9709] | 30 | /** |
---|
| 31 | * @brief Acquiring the ID of a objectList. |
---|
[9715] | 32 | * @param objList The ObjectList to acquire the ID from. |
---|
[9709] | 33 | */ |
---|
[9715] | 34 | ClassID::ClassID(const ObjectListBase* const objList) |
---|
[9701] | 35 | { |
---|
[9709] | 36 | objList->acquireID(this->_id, this->_name); |
---|
[9701] | 37 | } |
---|
| 38 | |
---|
| 39 | |
---|
[9715] | 40 | ClassID NullClass::_classID; |
---|
[9709] | 41 | |
---|
| 42 | int NullClass::_nullID; |
---|
| 43 | const std::string NullClass::_nullName = std::string("NullClass"); |
---|
Note: See
TracBrowser
for help on using the repository browser.