Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 21, 2016, 4:18:45 PM (7 years ago)
Author:
patricwi
Message:

linker error

File:
1 edited

Legend:

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

    r11295 r11305  
    3737#include "pickup/Pickup.h"
    3838#include "HUDPickupItem.h"
     39#include "pickup/PickupManager.h"
    3940
    4041namespace orxonox
     
    5354        this->background_->addChild(overlayElement_);
    5455
     56        PickupManager::getInstance().setPickupSystem(this);
    5557    }
    5658
     
    6567   //TODO: XMLPort
    6668
    67     void HUDPickupSystem::updatePickupList(std::vector<WeakPtr<Pickup>> picks)
     69    void HUDPickupSystem::updatePickupList(std::vector<Pickupable*> picks)
    6870    {
    69         for(Pickup* p : picks)
     71        for(Pickupable* p : picks)
    7072        {
    7173            HUDPickupItem* item = new HUDPickupItem(this->getContext());
    72             // item->initializeMaterial(p->getRepresentationName());
     74            item->initializeMaterial(((Pickup*)p)->getRepresentationName());
    7375            item->printHello();
    7476        }
Note: See TracChangeset for help on using the changeset viewer.