Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 8, 2009, 12:36:08 AM (15 years ago)
Author:
dafrick
Message:

Merging of the current QuestSystem branch.

Location:
code/branches/questsystem5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/questsystem5

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

    r2779 r2907  
    3737#include "OrxonoxPrereqs.h"
    3838
    39 #include <map>
     39#include <set>
     40#include <string>
    4041#include <OgrePrerequisites.h>
    4142#include "core/BaseObject.h"
     
    6465        static void scrollGroup(const std::string& name, const Vector2& scroll);
    6566
    66         inline const std::map<std::string, OrxonoxOverlay*>& getOverlays() const
     67        inline const std::set<OrxonoxOverlay*>& getOverlays() const
    6768            { return this->hudElements_; }
    6869
    6970        void changedVisibility();
    7071
    71         void setOwner(ControllableEntity* owner);
    72         inline ControllableEntity* getOwner() const
     72        void setOwner(BaseObject* owner);
     73        inline BaseObject* getOwner() const
    7374            { return this->owner_; }
    7475
     
    8687
    8788        void addElement(OrxonoxOverlay* element);
    88                 void insertElement(OrxonoxOverlay* element, const std::string & name);
    89         bool removeElement(const std::string & name);
     89        bool removeElement(OrxonoxOverlay* element);
    9090        OrxonoxOverlay* getElement(unsigned int index);
    9191
    9292    private:
    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
     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
    9797    };
    9898}
Note: See TracChangeset for help on using the changeset viewer.