Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 22, 2008, 12:06:55 AM (16 years ago)
Author:
rgrieder
Message:
  • added blankString to String so you can return ""; even if it's a const std::string&
  • fixed several bugs with aspect correct and margin alignment
  • added console commands for OrxonoxOverlays and OverlayGroups for rotate, scale and scroll (you can access the by name (from name=.. in xml file), e.g. "OrxonoxOverlay rotateOverlay SpeedBar 90)
  • converted everything in overlays/ to 4 spaces/tab ;)
  • removed all using namespace Ogre;
  • added background_ Panel to OrxonoxOverlay, since most of the derived classes can use that
  • should work now, but I'll have to test on a tardis box first
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hud/src/orxonox/overlays/hud/HUDRadar.h

    r1614 r1615  
    4444    class _OrxonoxExport HUDRadar : public OrxonoxOverlay, public RadarListener
    4545    {
    46       public:
     46    public:
    4747        HUDRadar();
    4848        ~HUDRadar();
     
    5050        void XMLPort(Element& xmlElement, XMLPort::Mode mode);
    5151
    52         float getRadarSensitivity() const { return this->sensitivity_; }
    53         void setRadarSensitivity(float sensitivity) { this->sensitivity_ = sensitivity; }
    54 
     52    private:
     53        // XML accessors
    5554        float getHalfDotSizeDistance() const { return this->halfDotSizeDistance_; }
    5655        void setHalfDotSizeDistance(float distance) { this->halfDotSizeDistance_ = distance; }
     
    5958        void setMaximumDotSize(float size) { this->maximumDotSize_ = size; }
    6059
    61       private:
     60        float getRadarSensitivity() const { return this->sensitivity_; }
     61        // used also by RadarListener interface!
     62        void setRadarSensitivity(float sensitivity) { this->sensitivity_ = sensitivity; }
     63
     64        // RadarListener interface
    6265        void displayObject(RadarViewable* viewable, bool bIsMarked);
    63         float getRadarSensitivity() { return 1.0f; }
    6466        void radarTick(float dt);
    6567
Note: See TracChangeset for help on using the changeset viewer.