Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 27, 2008, 8:07:29 AM (16 years ago)
Author:
rgrieder
Message:

updated input branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/input/src/core/BaseObject.h

    r1505 r1629  
    4747    class _CoreExport BaseObject : virtual public OrxonoxClass
    4848    {
     49        friend class WorldEntity;
     50
    4951        public:
    5052            BaseObject();
    5153            virtual ~BaseObject();
    52             virtual void loadParams(TiXmlElement* xmlElem);
    5354            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_; }
    5458
    5559            /** @brief Sets the name of the object. @param name The name */
     
    6165
    6266            /** @brief Sets the state of the objects activity. @param bActive True = active */
    63             inline void setActivity(bool bActive) { this->bActive_ = bActive; this->changedActivity(); }
     67            inline void setActive(bool bActive) { this->bActive_ = bActive; this->changedActivity(); }
    6468            /** @brief Returns the state of the objects activity. @return The state of the activity */
    65             inline const bool isActive() const { return this->bActive_; }
     69            inline bool isActive() const { return this->bActive_; }
    6670            /** @brief This function gets called if the activity of the object changes. */
    6771            virtual void changedActivity() {}
    6872
    6973            /** @brief Sets the state of the objects visibility. @param bVisible True = visible */
    70             inline void setVisibility(bool bVisible) { this->bVisible_ = bVisible; this->changedVisibility(); }
     74            inline void setVisible(bool bVisible) { this->bVisible_ = bVisible; this->changedVisibility(); }
    7175            /** @brief Returns the state of the objects visibility. @return The state of the visibility */
    72             inline const bool isVisible() const { return this->bVisible_; }
     76            inline bool isVisible() const { return this->bVisible_; }
    7377            /** @brief This function gets called if the visibility of the object changes. */
    7478            virtual void changedVisibility() {}
     
    9094        private:
    9195            std::string name_;                          //!< The name of the object
     96            bool bInitialized_;                         //!< True if the object was initialized (passed the object registration)
    9297            bool bActive_;                              //!< True = the object is active
    9398            bool bVisible_;                             //!< True = the object is visible
Note: See TracChangeset for help on using the changeset viewer.