Changeset 1558 for code/trunk/src/core
- Timestamp:
- Jun 7, 2008, 2:06:41 AM (16 years ago)
- Location:
- code/trunk/src/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/core/BaseObject.cc
r1505 r1558 46 46 */ 47 47 BaseObject::BaseObject() : 48 bActive_(true), 49 bVisible_(true), 50 level_(0), 51 namespace_(0) 48 bInitialized_(false), 49 bActive_(true), 50 bVisible_(true), 51 level_(0), 52 namespace_(0) 52 53 { 53 54 RegisterRootObject(BaseObject); 55 56 this->bInitialized_ = true; 54 57 } 55 58 -
code/trunk/src/core/BaseObject.h
r1505 r1558 47 47 class _CoreExport BaseObject : virtual public OrxonoxClass 48 48 { 49 friend class WorldEntity; 50 49 51 public: 50 52 BaseObject(); … … 52 54 virtual void loadParams(TiXmlElement* xmlElem); 53 55 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 56 57 /** @brief Returns if the object was initialized (passed the object registration). @return True was the object is initialized */ 58 inline bool isInitialized() const { return this->bInitialized_; } 54 59 55 60 /** @brief Sets the name of the object. @param name The name */ … … 63 68 inline void setActivity(bool bActive) { this->bActive_ = bActive; this->changedActivity(); } 64 69 /** @brief Returns the state of the objects activity. @return The state of the activity */ 65 inline constbool isActive() const { return this->bActive_; }70 inline bool isActive() const { return this->bActive_; } 66 71 /** @brief This function gets called if the activity of the object changes. */ 67 72 virtual void changedActivity() {} … … 70 75 inline void setVisibility(bool bVisible) { this->bVisible_ = bVisible; this->changedVisibility(); } 71 76 /** @brief Returns the state of the objects visibility. @return The state of the visibility */ 72 inline constbool isVisible() const { return this->bVisible_; }77 inline bool isVisible() const { return this->bVisible_; } 73 78 /** @brief This function gets called if the visibility of the object changes. */ 74 79 virtual void changedVisibility() {} … … 90 95 private: 91 96 std::string name_; //!< The name of the object 97 bool bInitialized_; //!< True if the object was initialized (passed the object registration) 92 98 bool bActive_; //!< True = the object is active 93 99 bool bVisible_; //!< True = the object is visible
Note: See TracChangeset
for help on using the changeset viewer.