Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 2, 2009, 8:42:11 PM (16 years ago)
Author:
landauf
Message:
  • Added overlay element for the Pong Gametype
  • Changed the type of the overlay's owner to BaseObject (former ControllableEntity) to allow other classes to own an overlay (for example a Gametype)
  • OverlayGroup does now use a std::set instead of a std::map to store it's overlay elements. Therefore a name is not anymore compulsory for an overlay element.
File:
1 edited

Legend:

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

    r2662 r2890  
    154154        virtual void changedVisibility();
    155155
    156         inline void setOwner(ControllableEntity* owner)
     156        inline void setOwner(BaseObject* owner)
    157157        {
    158158            if (this->owner_ != owner)
     
    162162            }
    163163        }
    164         inline ControllableEntity* getOwner() const
     164        inline BaseObject* getOwner() const
    165165            { return this->owner_; }
    166166        virtual void changedOwner() {}
     
    206206            We could also use the ObjectList, but that doesn't guarantee XMLPort(.) was called and is slower. */
    207207        static std::map<std::string, OrxonoxOverlay*> overlays_s;
    208         ControllableEntity* owner_;
     208        BaseObject* owner_;
    209209        OverlayGroup* group_;
    210210  };
Note: See TracChangeset for help on using the changeset viewer.