Changeset 8896 for code/branches/hud/src/orxonox
- Timestamp:
- Oct 19, 2011, 4:16:25 PM (13 years ago)
- Location:
- code/branches/hud/src/orxonox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud/src/orxonox/infos/PlayerInfo.cc
r8706 r8896 36 36 #include "worldentities/ControllableEntity.h" 37 37 #include "controllers/Controller.h" 38 #include "worldentities/pawns/SpaceShip.h" 38 39 39 40 namespace orxonox … … 189 190 190 191 this->changedControllableEntity(); 192 193 SpaceShip* spaceship = dynamic_cast<SpaceShip*>(entity); 194 if (spaceship != NULL) 195 { 196 spaceship->setRVName(this->getName()); 197 } 191 198 } 192 199 -
code/branches/hud/src/orxonox/interfaces/RadarViewable.cc
r8858 r8896 51 51 , radarObjectDescription_("staticObject") 52 52 , scale_(1.0f) 53 , RVName("") 53 54 { 54 55 RegisterRootObject(RadarViewable); -
code/branches/hud/src/orxonox/interfaces/RadarViewable.h
r8738 r8896 60 60 RadarViewable(BaseObject* creator, const WorldEntity* wePtr); 61 61 virtual ~RadarViewable(); 62 63 virtual void setRVName(std::string name) 64 { 65 if (this->RVName != name) 66 { 67 this->RVName = name; 68 this->settingsChanged(); 69 } 70 } 71 72 std::string getRVName() const 73 { return this->RVName; } 62 74 63 75 inline void setRadarObjectCamouflage(float camouflage) … … 152 164 ColourValue radarObjectColour_; 153 165 float scale_; 166 std::string RVName; 154 167 }; 155 168 }
Note: See TracChangeset
for help on using the changeset viewer.