Changeset 847 for code/branches/core/src/orxonox/core/OrxonoxClass.h
- Timestamp:
- Mar 3, 2008, 1:49:06 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core/src/orxonox/core/OrxonoxClass.h
r845 r847 155 155 { return this->getIdentifier()->isDirectParentOf(object->getIdentifier()); } 156 156 157 158 /** @brief Sets the name of the object. @param name The name */159 inline virtual void setName(const std::string& name) { this->name_ = name; }160 161 /** @brief Returns the name of the object. @return The name */162 inline const std::string& getName() const { return this->name_; }163 164 /** @brief Sets the state of the objects activity. @param bActive True = active */165 inline virtual void setActive(bool bActive) { this->bActive_ = bActive; }166 167 /** @brief Returns the state of the objects activity. @return The state of the activity */168 inline const bool isActive() const { return this->bActive_; }169 170 /** @brief Sets the state of the objects visibility. @param bVisible True = visible */171 inline virtual void setVisible(bool bVisible) { this->bVisible_ = bVisible; }172 173 /** @brief Returns the state of the objects visibility. @return The state of the visibility */174 inline const bool isVisible() const { return this->bVisible_; }175 176 157 private: 177 158 Identifier* identifier_; //!< The Identifier of the object 178 159 std::list<const Identifier*>* parents_; //!< List of all parents of the object 179 160 MetaObjectList metaList_; //!< MetaObjectList, containing all ObjectLists and ObjectListElements the object is registered in 180 181 std::string name_; //!< The name of the object182 bool bActive_; //!< True = the object is active183 bool bVisible_; //!< True = the object is visible184 161 }; 185 162 }
Note: See TracChangeset
for help on using the changeset viewer.