Changeset 9869 in orxonox.OLD for trunk/src/util/hud.cc
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/hud.cc
r9406 r9869 34 34 #include "playable.h" 35 35 36 ObjectListDefinition(Hud); 36 37 /** 37 38 * standard constructor … … 40 41 Hud::Hud () 41 42 { 42 this-> setClassID(CL_HUD, "Hud");43 this->registerObject(this, Hud::_objectList); 43 44 44 45 //this->setSize2D( … … 184 185 if (State::getPlayer() && State::getPlayer()->getPlayable() && State::getObjectManager()) 185 186 { 186 printf("UPDATING RADAR\n");187 PRINTF(4)("UPDATING RADAR\n"); 187 188 this->_radar->setCenterNode(State::getPlayer()->getPlayable()); 188 this->_radar->addEntityList(&State::getObjectManager()->get ObjectList((OM_LIST)(State::getPlayer()->getPlayable()->getOMListNumber()+1)), Color(.4, .4, 1.0));189 this->_radar->addEntityList(&State::getObjectManager()->get ObjectList(OM_GROUP_02), Color(1.0, .2, .2));189 this->_radar->addEntityList(&State::getObjectManager()->getEntityList((OM_LIST)(State::getPlayer()->getPlayable()->getOMListNumber()+1)), Color(.4, .4, 1.0)); 190 this->_radar->addEntityList(&State::getObjectManager()->getEntityList(OM_GROUP_02), Color(1.0, .2, .2)); 190 191 this->_radar->setAbsCoor2D(0.8 * this->resX, 0.01 * this->resY); 191 192 this->_radar->setWidgetSize(0.2 * this->resX, 0.2 * this->resY);
Note: See TracChangeset
for help on using the changeset viewer.