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