Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6057


Ignore:
Timestamp:
Nov 13, 2009, 11:31:30 AM (15 years ago)
Author:
rgrieder
Message:

Moved an inline function to the source in OrxonoxOverlay.

Location:
code/trunk/src/orxonox/overlays
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/overlays/OrxonoxOverlay.cc

    r5980 r6057  
    359359            (*it).second->rotate(angle);
    360360    }
     361
     362    void OrxonoxOverlay::setOverlayGroup(OverlayGroup* group)
     363    {
     364        if (group != this->group_)
     365        {
     366            if (this->group_)
     367                this->group_->removeElement(this);
     368            this->group_ = group;
     369            this->changedOverlayGroup();
     370        }
     371    }
    361372}
  • code/trunk/src/orxonox/overlays/OrxonoxOverlay.h

    r6056 r6057  
    4343#include "core/BaseObject.h"
    4444#include "core/WindowEventListener.h"
    45 #include "OverlayGroup.h"
    4645
    4746namespace orxonox
     
    170169        virtual void changedOwner() {}
    171170
    172         inline void setOverlayGroup(OverlayGroup* group)
    173         {
    174             if (group != this->group_)
    175             {
    176                 if(this->group_)
    177                     this->group_->removeElement(this);
    178                 this->group_ = group;
    179                 this->changedOverlayGroup();
    180             }
    181         }
     171        void setOverlayGroup(OverlayGroup* group);
    182172        inline OverlayGroup* getOverlayGroup() const
    183173            { return this->group_; }
Note: See TracChangeset for help on using the changeset viewer.