Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 25, 2008, 1:14:19 AM (16 years ago)
Author:
landauf
Message:

The SpaceShips HUD is working again (Speedbar and Radar)

File:
1 edited

Legend:

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

    r2087 r2256  
    154154        virtual void changedVisibility();
    155155
     156        inline void setOwner(ControllableEntity* owner)
     157        {
     158            if (this->owner_ != owner)
     159            {
     160                this->owner_ = owner;
     161                this->changedOwner();
     162            }
     163        }
     164        inline ControllableEntity* getOwner() const
     165            { return this->owner_; }
     166        virtual void changedOwner() {}
     167
    156168    protected:
    157169        virtual void angleChanged();
     
    182194            We could also use the ObjectList, but that doesn't guarantee XMLPort(.) was called and is slower. */
    183195        static std::map<std::string, OrxonoxOverlay*> overlays_s;
     196        ControllableEntity* owner_;
    184197  };
     198
     199  SUPER_FUNCTION(7, OrxonoxOverlay, changedOwner, false);
    185200}
    186201
Note: See TracChangeset for help on using the changeset viewer.