Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 9, 2013, 2:26:10 PM (11 years ago)
Author:
wroennin
Message:

added XMLProt for detectionLimit_

Location:
code/branches/radarDreiD/src/modules/overlays/hud
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/radarDreiD/src/modules/overlays/hud/HUDRadar.cc

    r9877 r9882  
    6868        this->shapeMaterials_[RadarViewable::Triangle] = "RadarTriangle.png";
    6969        this->shapeMaterials_[RadarViewable::Square]   = "RadarSquare.png";
    70         this->setDetectionLimit( 10000.0f );
    7170        this->owner_ = 0;
    7271
     
    121120        XMLPortParam(HUDRadar, "material3DBack", set3DMaterialBack, get3DMaterialBack, xmlelement, mode);
    122121        XMLPortParam(HUDRadar, "mapAngle3D", setMapAngle, getMapAngle, xmlelement, mode);
    123 
    124 
    125 
     122        XMLPortParam(HUDRadar, "detectionLimit", setDetectionLimit, getDetectionLimit, xmlelement, mode);
    126123    }
    127124
  • code/branches/radarDreiD/src/modules/overlays/hud/HUDRadar.h

    r9847 r9882  
    5959        void setHalfDotSizeDistance(float distance) { this->halfDotSizeDistance_ = distance; }
    6060
    61         void setDetectionLimit( float limit )
    62         { this->detectionLimit_ = limit; }
    63         float getDetectionLimit() const
    64         { return this->detectionLimit_; }
     61        void setDetectionLimit( float limit ) { this->detectionLimit_ = limit; }
     62        float getDetectionLimit() const { return this->detectionLimit_; }
    6563
    6664        float getMaximumDotSize() const { return this->maximumDotSize_; }
Note: See TracChangeset for help on using the changeset viewer.