Last change
on this file since 384 was
384,
checked in by landauf, 17 years ago
|
copied changed files from objecthierarchy-branch
|
File size:
699 bytes
|
Rev | Line | |
---|
[384] | 1 | /*! |
---|
| 2 | @file OrxonoxClass.cc |
---|
| 3 | @brief Implementation of the OrxonoxClass Class. |
---|
| 4 | */ |
---|
| 5 | |
---|
[162] | 6 | #include "OrxonoxClass.h" |
---|
| 7 | |
---|
| 8 | namespace orxonox |
---|
| 9 | { |
---|
[384] | 10 | /** @brief Constructor: Sets the default values. */ |
---|
[162] | 11 | OrxonoxClass::OrxonoxClass() |
---|
| 12 | { |
---|
| 13 | this->identifier_ = 0; |
---|
| 14 | this->parents_ = 0; |
---|
[246] | 15 | |
---|
[384] | 16 | this->bActive_ = true; |
---|
| 17 | this->bVisible_ = true; |
---|
[162] | 18 | } |
---|
| 19 | |
---|
[384] | 20 | /** @brief Destructor: Deletes, if existing, the list of the parents. */ |
---|
[162] | 21 | OrxonoxClass::~OrxonoxClass() |
---|
| 22 | { |
---|
[384] | 23 | // parents_ exists only if isCreatingHierarchy() of the associated Identifier returned true while creating the class |
---|
[162] | 24 | if (this->parents_) |
---|
| 25 | delete this->parents_; |
---|
| 26 | } |
---|
| 27 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.