Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 14, 2011, 4:45:22 PM (14 years ago)
Author:
smerkli
Message:

merged hud branch

Location:
code/branches/presentation2011
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2011

  • code/branches/presentation2011/src/modules/overlays/hud/HUDNavigation.h

    r8891 r8988  
    2424 *   Co-authors:
    2525 *      Reto Grieder
     26 *      Matthias Spalinger
    2627 *
    2728 */
     
    5455    virtual void tick ( float dt );
    5556
     57    // RadarListener interface
    5658    virtual void addObject ( RadarViewable* object );
    5759    virtual void removeObject ( RadarViewable* viewable );
     
    6668    inline float getRadarSensitivity() const
    6769    { return 1.0f; }
     70
     71    unsigned int getMarkerLimit() { return this->markerLimit_; }
    6872
    6973private:
     
    8589    { return navMarkerSize_; }
    8690
    87     void setDetectionLimit( float limit )
    88     { this->detectionLimit_ = limit; }
    89     float getDetectionLimit() const
    90     { return this->detectionLimit_; }
    9191
    9292    void setTextSize ( float size );
     
    102102    sortedList sortedObjectList_;
    103103
     104    float getArrowSizeX(int dist);   
     105    float getArrowSizeY(int dist);
    104106
    105107    float navMarkerSize_;
    106108    std::string fontName_;
    107109    float textSize_;
     110    bool showDistance;
    108111
    109     unsigned int markerLimit_; //TODO: is it possible to set this over the console and/or the IG-Setting
    110     float detectionLimit_; //!< Objects that are more far away than detectionLimit_ are not displayed on the HUD. 10000.0f is the default value.
    111                            //!< In order to bypass this behaviour, set a negative detectionLimit_. Then the detection range is "infinite".
     112    unsigned int markerLimit_;;
     113
     114
    112115};
    113116}
Note: See TracChangeset for help on using the changeset viewer.