Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 28, 2012, 12:28:44 PM (12 years ago)
Author:
landauf
Message:

renamed RVName to radarname
cast to RadarViewable instead of SpaceShip to set the name (in PlayerInfo)

Location:
code/trunk/src/orxonox/interfaces
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/interfaces/RadarViewable.cc

    r9016 r9257  
    5151        , radarObjectDescription_("staticObject")
    5252        , scale_(1.0f)
    53                 , RVName("")
    5453    {
    5554        RegisterRootObject(RadarViewable);
  • code/trunk/src/orxonox/interfaces/RadarViewable.h

    r9016 r9257  
    6161        virtual ~RadarViewable();
    6262
    63                 virtual void setRVName(std::string name)
     63                virtual void setRadarName(const std::string& name)
    6464                        {
    65                                 if (this->RVName != name)
     65                                if (this->radarName_ != name)
    6666                                {
    67                                         this->RVName = name;
     67                                        this->radarName_ = name;
    6868                                        this->settingsChanged();
    6969                                }
    7070                        }
    71                 std::string getRVName() const
    72                         { return this->RVName; }
     71                const std::string& getRadarName() const
     72                        { return this->radarName_; }
    7373
    7474        inline void setRadarObjectCamouflage(float camouflage)
     
    163163        ColourValue radarObjectColour_;
    164164        float scale_;
    165                 std::string RVName;
     165                std::string radarName_;
    166166    };
    167167}
Note: See TracChangeset for help on using the changeset viewer.