Last change
on this file since 447 was
366,
checked in by landauf, 17 years ago
|
moved common object-functions and -variables (like isA() and name_) from BaseObject to OrxonoxClass, so they can still be used while iterating through a list of objects inheriting from an interface.
|
File size:
699 bytes
|
Line | |
---|
1 | /*! |
---|
2 | @file OrxonoxClass.cc |
---|
3 | @brief Implementation of the OrxonoxClass Class. |
---|
4 | */ |
---|
5 | |
---|
6 | #include "OrxonoxClass.h" |
---|
7 | |
---|
8 | namespace orxonox |
---|
9 | { |
---|
10 | /** @brief Constructor: Sets the default values. */ |
---|
11 | OrxonoxClass::OrxonoxClass() |
---|
12 | { |
---|
13 | this->identifier_ = 0; |
---|
14 | this->parents_ = 0; |
---|
15 | |
---|
16 | this->bActive_ = true; |
---|
17 | this->bVisible_ = true; |
---|
18 | } |
---|
19 | |
---|
20 | /** @brief Destructor: Deletes, if existing, the list of the parents. */ |
---|
21 | OrxonoxClass::~OrxonoxClass() |
---|
22 | { |
---|
23 | // parents_ exists only if isCreatingHierarchy() of the associated Identifier returned true while creating the class |
---|
24 | if (this->parents_) |
---|
25 | delete this->parents_; |
---|
26 | } |
---|
27 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.