Changeset 8988 for code/branches/presentation2011/src/orxonox
- Timestamp:
- Dec 14, 2011, 4:45:22 PM (13 years ago)
- Location:
- code/branches/presentation2011
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2011
- Property svn:mergeinfo changed
/code/branches/hud (added) merged: 8883,8896-8897,8906,8920,8929,8955,8966,8969,8986
- Property svn:mergeinfo changed
-
code/branches/presentation2011/src/orxonox/controllers/NewHumanController.h
r7859 r8988 69 69 virtual void doResumeControl(); 70 70 71 float getCurrentYaw(){ return this->currentYaw_; } 72 float getCurrentPitch(){ return this->currentPitch_; } 73 71 74 72 75 protected: -
code/branches/presentation2011/src/orxonox/infos/PlayerInfo.cc
r8891 r8988 36 36 #include "worldentities/ControllableEntity.h" 37 37 #include "controllers/Controller.h" 38 #include "worldentities/pawns/SpaceShip.h" 38 39 39 40 namespace orxonox … … 170 171 171 172 this->changedControllableEntity(); 173 SpaceShip* spaceship = dynamic_cast<SpaceShip*>(entity); 174 if (spaceship != NULL) 175 { 176 spaceship->setRVName(this->getName()); 177 } 172 178 } 173 179 -
code/branches/presentation2011/src/orxonox/interfaces/RadarViewable.cc
r8858 r8988 51 51 , radarObjectDescription_("staticObject") 52 52 , scale_(1.0f) 53 , RVName("") 53 54 { 54 55 RegisterRootObject(RadarViewable); -
code/branches/presentation2011/src/orxonox/interfaces/RadarViewable.h
r8738 r8988 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 std::string getRVName() const 72 { return this->RVName; } 62 73 63 74 inline void setRadarObjectCamouflage(float camouflage) … … 152 163 ColourValue radarObjectColour_; 153 164 float scale_; 165 std::string RVName; 154 166 }; 155 167 } -
code/branches/presentation2011/src/orxonox/worldentities/pawns/Pawn.cc
r8980 r8988 129 129 XMLPortParam(Pawn, "reloadrate", setReloadRate, getReloadRate, xmlelement, mode).defaultValues(0); 130 130 XMLPortParam(Pawn, "reloadwaittime", setReloadWaitTime, getReloadWaitTime, xmlelement, mode).defaultValues(1.0f); 131 132 131 132 XMLPortParam ( RadarViewable, "RVName", setRVName, getRVName, xmlelement, mode ); 133 133 } 134 134
Note: See TracChangeset
for help on using the changeset viewer.