Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 8, 2009, 12:58:47 AM (16 years ago)
Author:
dafrick
Message:

Reverted to revision 2906 (because I'm too stupid to merge correctly, 2nd try will follow shortly. ;))

Location:
code/branches/questsystem5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/questsystem5

  • code/branches/questsystem5/src/orxonox/overlays/OverlayGroup.h

    r2907 r2908  
    3737#include "OrxonoxPrereqs.h"
    3838
    39 #include <set>
    40 #include <string>
     39#include <map>
    4140#include <OgrePrerequisites.h>
    4241#include "core/BaseObject.h"
     
    6564        static void scrollGroup(const std::string& name, const Vector2& scroll);
    6665
    67         inline const std::set<OrxonoxOverlay*>& getOverlays() const
     66        inline const std::map<std::string, OrxonoxOverlay*>& getOverlays() const
    6867            { return this->hudElements_; }
    6968
    7069        void changedVisibility();
    7170
    72         void setOwner(BaseObject* owner);
    73         inline BaseObject* getOwner() const
     71        void setOwner(ControllableEntity* owner);
     72        inline ControllableEntity* getOwner() const
    7473            { return this->owner_; }
    7574
     
    8786
    8887        void addElement(OrxonoxOverlay* element);
    89         bool removeElement(OrxonoxOverlay* element);
     88                void insertElement(OrxonoxOverlay* element, const std::string & name);
     89        bool removeElement(const std::string & name);
    9090        OrxonoxOverlay* getElement(unsigned int index);
    9191
    9292    private:
    93         std::set<OrxonoxOverlay*> hudElements_;    //!< Contains all the OrxonoxOverlays of the this group.
    94         Vector2 scale_;                            //!< Current scale (independent of the elements).
    95         Vector2 scroll_;                           //!< Current scrolling offset.
    96         BaseObject* owner_;                        //!< The owner of this OverlayGroup
     93        std::map<std::string, OrxonoxOverlay*> hudElements_;    //!< Contains all the OrxonoxOverlays of the this group.
     94        Vector2 scale_;                                         //!< Current scale (independent of the elements).
     95        Vector2 scroll_;                                        //!< Current scrolling offset.
     96        ControllableEntity* owner_;                             //!< The owner of this OverlayGroup
    9797    };
    9898}
Note: See TracChangeset for help on using the changeset viewer.