Changeset 1629 for code/branches/input/src/core/BaseObject.h
- Timestamp:
- Jun 27, 2008, 8:07:29 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/input/src/core/BaseObject.h
r1505 r1629 47 47 class _CoreExport BaseObject : virtual public OrxonoxClass 48 48 { 49 friend class WorldEntity; 50 49 51 public: 50 52 BaseObject(); 51 53 virtual ~BaseObject(); 52 virtual void loadParams(TiXmlElement* xmlElem);53 54 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 55 56 /** @brief Returns if the object was initialized (passed the object registration). @return True was the object is initialized */ 57 inline bool isInitialized() const { return this->bInitialized_; } 54 58 55 59 /** @brief Sets the name of the object. @param name The name */ … … 61 65 62 66 /** @brief Sets the state of the objects activity. @param bActive True = active */ 63 inline void setActiv ity(bool bActive) { this->bActive_ = bActive; this->changedActivity(); }67 inline void setActive(bool bActive) { this->bActive_ = bActive; this->changedActivity(); } 64 68 /** @brief Returns the state of the objects activity. @return The state of the activity */ 65 inline constbool isActive() const { return this->bActive_; }69 inline bool isActive() const { return this->bActive_; } 66 70 /** @brief This function gets called if the activity of the object changes. */ 67 71 virtual void changedActivity() {} 68 72 69 73 /** @brief Sets the state of the objects visibility. @param bVisible True = visible */ 70 inline void setVisib ility(bool bVisible) { this->bVisible_ = bVisible; this->changedVisibility(); }74 inline void setVisible(bool bVisible) { this->bVisible_ = bVisible; this->changedVisibility(); } 71 75 /** @brief Returns the state of the objects visibility. @return The state of the visibility */ 72 inline constbool isVisible() const { return this->bVisible_; }76 inline bool isVisible() const { return this->bVisible_; } 73 77 /** @brief This function gets called if the visibility of the object changes. */ 74 78 virtual void changedVisibility() {} … … 90 94 private: 91 95 std::string name_; //!< The name of the object 96 bool bInitialized_; //!< True if the object was initialized (passed the object registration) 92 97 bool bActive_; //!< True = the object is active 93 98 bool bVisible_; //!< True = the object is visible
Note: See TracChangeset
for help on using the changeset viewer.