Changeset 871 for code/trunk/src/orxonox/core/BaseObject.cc
- Timestamp:
- Mar 9, 2008, 4:44:36 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/core/BaseObject.cc
r790 r871 20 20 * 21 21 * Author: 22 * ...22 * Fabian 'x3n' Landau 23 23 * Co-authors: 24 24 * ... … … 26 26 */ 27 27 28 /* !28 /** 29 29 @file BaseObject.cc 30 30 @brief Implementation of the BaseObject class. … … 33 33 #include "util/tinyxml/tinyxml.h" 34 34 35 #include "core/CoreIncludes.h" 35 36 #include "BaseObject.h" 37 #include "XMLPort.h" 38 #include "Level.h" 36 39 37 40 namespace orxonox … … 45 48 { 46 49 RegisterRootObject(BaseObject); 50 51 this->bActive_ = true; 52 this->bVisible_ = true; 53 this->level_ = 0; 47 54 } 48 55 … … 64 71 } 65 72 } 73 74 /** 75 @brief XML loading and saving. 76 @param xmlelement The XML-element 77 @param loading Loading (true) or saving (false) 78 @return The XML-element 79 */ 80 void BaseObject::XMLPort(Element& xmlelement, bool loading) 81 { 82 XMLPortParam(BaseObject, "name", setName, getName, xmlelement, loading); 83 } 84 85 /** 86 @brief Returns the levelfile that loaded this object. 87 @return The levelfile 88 */ 89 const std::string& BaseObject::getLevelfile() const 90 { 91 return this->level_->getFile(); 92 } 66 93 }
Note: See TracChangeset
for help on using the changeset viewer.