- Timestamp:
- Apr 8, 2009, 12:58:47 AM (16 years ago)
- Location:
- code/branches/questsystem5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5
- Property svn:mergeinfo changed
-
code/branches/questsystem5/src/orxonox/overlays/OverlayGroup.h
r2907 r2908 37 37 #include "OrxonoxPrereqs.h" 38 38 39 #include <set> 40 #include <string> 39 #include <map> 41 40 #include <OgrePrerequisites.h> 42 41 #include "core/BaseObject.h" … … 65 64 static void scrollGroup(const std::string& name, const Vector2& scroll); 66 65 67 inline const std:: set<OrxonoxOverlay*>& getOverlays() const66 inline const std::map<std::string, OrxonoxOverlay*>& getOverlays() const 68 67 { return this->hudElements_; } 69 68 70 69 void changedVisibility(); 71 70 72 void setOwner( BaseObject* owner);73 inline BaseObject* getOwner() const71 void setOwner(ControllableEntity* owner); 72 inline ControllableEntity* getOwner() const 74 73 { return this->owner_; } 75 74 … … 87 86 88 87 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); 90 90 OrxonoxOverlay* getElement(unsigned int index); 91 91 92 92 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 OverlayGroup93 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 97 97 }; 98 98 }
Note: See TracChangeset
for help on using the changeset viewer.