Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9703 in orxonox.OLD for branches/new_class_id/src/util/hud.cc


Ignore:
Timestamp:
Aug 25, 2006, 12:11:45 PM (18 years ago)
Author:
bensch
Message:

orxonox/new_object_list: fast factory, ObjectManager, and Hud adapted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/util/hud.cc

    r9406 r9703  
    3434#include "playable.h"
    3535
     36NewObjectListDefinition(Hud);
    3637/**
    3738 * standard constructor
     
    4041Hud::Hud ()
    4142{
    42   this->setClassID(CL_HUD, "Hud");
     43  this->registerObject(this, Hud::_objectList);
    4344
    4445  //this->setSize2D(
     
    186187    printf("UPDATING RADAR\n");
    187188    this->_radar->setCenterNode(State::getPlayer()->getPlayable());
    188     this->_radar->addEntityList(&State::getObjectManager()->getObjectList((OM_LIST)(State::getPlayer()->getPlayable()->getOMListNumber()+1)), Color(.4, .4, 1.0));
    189     this->_radar->addEntityList(&State::getObjectManager()->getObjectList(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));
    190191    this->_radar->setAbsCoor2D(0.8 * this->resX, 0.01 * this->resY);
    191192    this->_radar->setWidgetSize(0.2 * this->resX, 0.2 * this->resY);
Note: See TracChangeset for help on using the changeset viewer.