Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 8, 2009, 1:07:27 AM (15 years ago)
Author:
dafrick
Message:

Merging the QuestSystem branch to the trunk. Let's hope, this isn't a 'third time's the charm'-thing…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/overlays/OverlayGroup.cc

    r2890 r2909  
    113113    }
    114114
     115    /**
     116    @brief
     117        Removes an element from the map.
     118    @param element
     119        The element that is to be removed.
     120    @return
     121        Returns true if there was such an element to remove, false if not.
     122    */
     123    bool OverlayGroup::removeElement(OrxonoxOverlay* element)
     124    {
     125        if(this->hudElements_.erase(element) == 0)
     126            return false;
     127        return true;
     128    }
     129
    115130    //! Returns a different element as long as index < hudElements_.size().
    116131    OrxonoxOverlay* OverlayGroup::getElement(unsigned int index)
Note: See TracChangeset for help on using the changeset viewer.