Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 17, 2016, 4:58:06 PM (7 years ago)
Author:
patricwi
Message:

improvements on pickup system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/HUD_HS16/src/modules/overlays/hud/HUDPickupSystem.cc

    r11277 r11293  
    5050        overlayElement_->setPosition(0.0f,0.0f);
    5151        overlayElement_->setDimensions(0.70f,0.15f);
    52         orxout() << "hello HUDPickupSystem" << endl;
     52        orxout() << "hello here is the HUDPickupSystem" << endl;
    5353        this->background_->addChild(overlayElement_);
    5454
     
    6565   //TODO: XMLPort
    6666
    67     void HUDPickupSystem::updatePickupList(std::vector<Pickup> picks)
     67    void HUDPickupSystem::updatePickupList(std::vector<WeakPtr<Pickup>> picks)
    6868    {
    69         for(Pickup p : picks)
     69        for(Pickup* p : picks)
    7070        {
    71             HUDPickupItem item = new HUDPickupItem(this->getContext());
    72             item.initializeMaterial(p.getRepresentationName());
     71            HUDPickupItem* item = new HUDPickupItem(this->getContext());
     72            item->initializeMaterial(p->getRepresentationName());
    7373        }
    7474    }
Note: See TracChangeset for help on using the changeset viewer.