- Timestamp:
- Nov 21, 2016, 4:18:45 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/HUD_HS16/src/modules/overlays/hud/HUDPickupSystem.cc
r11295 r11305 37 37 #include "pickup/Pickup.h" 38 38 #include "HUDPickupItem.h" 39 #include "pickup/PickupManager.h" 39 40 40 41 namespace orxonox … … 53 54 this->background_->addChild(overlayElement_); 54 55 56 PickupManager::getInstance().setPickupSystem(this); 55 57 } 56 58 … … 65 67 //TODO: XMLPort 66 68 67 void HUDPickupSystem::updatePickupList(std::vector< WeakPtr<Pickup>> picks)69 void HUDPickupSystem::updatePickupList(std::vector<Pickupable*> picks) 68 70 { 69 for(Pickup * p : picks)71 for(Pickupable* p : picks) 70 72 { 71 73 HUDPickupItem* item = new HUDPickupItem(this->getContext()); 72 // item->initializeMaterial(p->getRepresentationName());74 item->initializeMaterial(((Pickup*)p)->getRepresentationName()); 73 75 item->printHello(); 74 76 }
Note: See TracChangeset
for help on using the changeset viewer.