Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/volumetric_fog/src/lib/lang/class_id.cc @ 10030

Last change on this file since 10030 was 9869, checked in by bensch, 18 years ago

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File size: 996 bytes
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 */
25ClassID::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 */
34ClassID::ClassID(const ObjectListBase* const objList)
35{
36  objList->acquireID(this->_id, this->_name);
37}
38
39
40ClassID NullClass::_classID;
41
42int NullClass::_nullID;
43const std::string NullClass::_nullName = std::string("NullClass");
Note: See TracBrowser for help on using the repository browser.