Changeset 1613 for code/branches/hud/src/orxonox/RadarViewable.cc
- Timestamp:
- Jun 20, 2008, 12:05:12 AM (16 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud/src/orxonox/RadarViewable.cc
r1609 r1613 38 38 */ 39 39 RadarViewable::RadarViewable() 40 : radarObjectVisibility_(1.0f) 40 : radarObjectCamouflage_(0.0f) 41 , radarObjectType_(Dot) 41 42 , radarObject_(0) 43 , radarObjectDescription_("staticObject") 42 44 { 43 45 RegisterRootObject(RadarViewable); 44 46 } 45 47 46 void RadarViewable::unregisterFromRadar() 48 void RadarViewable::setRadarObjectDescription(const std::string& str) 49 { 50 Radar* radar = Radar::getInstancePtr(); 51 if (radar) 52 this->radarObjectType_ = radar->addObjectDescription(str); 53 else 54 { 55 CCOUT(2) << "Attempting to access the radar, but the radar is non existent." << std::endl; 56 } 57 this->radarObjectDescription_ = str; 58 } 59 60 /*void RadarViewable::unregisterFromRadar() 47 61 { 48 62 Radar* radar = Radar::getInstancePtr(); … … 53 67 CCOUT(2) << "Attempting to unregister an object to the radar, but the radar is non existent." << std::endl; 54 68 } 55 } 69 }*/ 56 70 }
Note: See TracChangeset
for help on using the changeset viewer.