Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 31, 2008, 4:32:31 AM (16 years ago)
Author:
landauf
Message:
  • packed all super-function-related code into a bunch of macros and commented the code.
  • added tick, XMLPort, changedActivity and changedVisibility as super-functions
File:
1 edited

Legend:

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

    r1592 r1684  
    3939#include "CorePrereqs.h"
    4040
     41#include "Super.h"
     42#include "OrxonoxClass.h"
    4143#include "util/XMLIncludes.h"
    42 #include "OrxonoxClass.h"
    4344
    4445namespace orxonox
     
    6566
    6667            /** @brief Sets the state of the objects activity. @param bActive True = active */
    67             inline void setActivity(bool bActive) { this->bActive_ = bActive; this->changedActivity(); }
     68            inline void setActive(bool bActive) { this->bActive_ = bActive; this->changedActivity(); }
    6869            /** @brief Returns the state of the objects activity. @return The state of the activity */
    6970            inline bool isActive() const { return this->bActive_; }
     
    7273
    7374            /** @brief Sets the state of the objects visibility. @param bVisible True = visible */
    74             inline void setVisibility(bool bVisible) { this->bVisible_ = bVisible; this->changedVisibility(); }
     75            inline void setVisible(bool bVisible) { this->bVisible_ = bVisible; this->changedVisibility(); }
    7576            /** @brief Returns the state of the objects visibility. @return The state of the visibility */
    7677            inline bool isVisible() const { return this->bVisible_; }
     
    101102            Namespace* namespace_;
    102103    };
     104
     105    SUPER_FUNCTION(1, BaseObject, XMLPort, false);
     106    SUPER_FUNCTION(3, BaseObject, changedActivity, false);
     107    SUPER_FUNCTION(4, BaseObject, changedVisibility, false);
    103108}
    104109
Note: See TracChangeset for help on using the changeset viewer.