Changeset 7050 for code/branches/presentation3/src/modules/overlays/hud
- Timestamp:
- May 31, 2010, 3:17:25 PM (14 years ago)
- Location:
- code/branches/presentation3/src/modules/overlays/hud
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/modules/overlays/hud/HUDNavigation.cc
r7014 r7050 46 46 #include "worldentities/pawns/Pawn.h" 47 47 #include "worldentities/WorldEntity.h" 48 #include " interfaces/RadarViewable.h"48 #include "core/ConfigValueIncludes.h" 49 49 // #include <boost/bind/bind_template.hpp> 50 50 … … 57 57 58 58 } 59 60 void HUDNavigation::setConfigValues() 61 { 62 SetConfigValue(markerLimit_, 3); 63 } 64 59 65 CreateFactory ( HUDNavigation ); 60 66 … … 63 69 { 64 70 RegisterObject ( HUDNavigation ); 71 this->setConfigValues(); 65 72 66 73 // Set default values … … 132 139 } 133 140 141 142 134 143 void HUDNavigation::tick ( float dt ) 135 144 { … … 142 151 143 152 144 //TODO: sort list 'sortedObjectList_' according to distance.$145 153 for ( sortedList::iterator listIt = sortedObjectList_.begin(); listIt != sortedObjectList_.end(); ++listIt ) 146 154 { … … 338 346 sortedObjectList_.push_front ( std::make_pair ( object, ( unsigned int ) 0 ) ); 339 347 340 //TODO: hide elements 348 341 349 } 342 350 … … 380 388 void HUDNavigation::changedOwner() 381 389 { 382 // TODO: Delete old objects?390 383 391 const std::set<RadarViewable*>& respawnObjects = this->getOwner()->getScene()->getRadar()->getRadarObjects(); 384 392 for ( std::set<RadarViewable*>::const_iterator it = respawnObjects.begin(); it != respawnObjects.end(); ++it ) -
code/branches/presentation3/src/modules/overlays/hud/HUDNavigation.h
r6971 r7050 49 49 virtual ~HUDNavigation(); 50 50 51 void setConfigValues(); 52 51 53 virtual void XMLPort ( Element& xmlElement, XMLPort::Mode mode ); 52 54 virtual void tick ( float dt ); … … 98 100 float textSize_; 99 101 100 static const unsigned int markerLimit_ = 5; //TODO: is it possible to set this over the console and/or the IG-Setting102 unsigned int markerLimit_;; //TODO: is it possible to set this over the console and/or the IG-Setting 101 103 102 104
Note: See TracChangeset
for help on using the changeset viewer.