Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

linker error

Location:
code/branches/HUD_HS16/src/modules/overlays/hud
Files:
4 edited

Legend:

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

    r11295 r11305  
    6565    }
    6666
    67     void initializeMaterial(const std::string& s)
     67    void HUDPickupItem::initializeMaterial(const std::string& s)
    6868    {
    6969        overlayElement_->setMaterialName(s);
    7070    }
    7171
    72     void printHello()
     72    void HUDPickupItem::printHello()
    7373    {
    7474        orxout() << "lets say hello" << endl;
  • code/branches/HUD_HS16/src/modules/overlays/hud/HUDPickupItem.h

    r11295 r11305  
    5353}
    5454
    55 #endif /* _HUDWeapon_H__ */
     55#endif
  • 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        }
  • code/branches/HUD_HS16/src/modules/overlays/hud/HUDPickupSystem.h

    r11293 r11305  
    2626 *
    2727 */
     28
     29
     30#ifndef _HUDPickupSystem_H__
     31#define _HUDPickupSystem_H__
     32
    2833#include "overlays/OverlaysPrereqs.h"
    2934
     
    5863        // virtual void positionChanged() override;
    5964        // virtual void sizeChanged() override;
     65        void updatePickupList(std::vector<Pickupable*> picks);   
    6066    private:
    61         void updatePickupList(std::vector<WeakPtr<Pickup>> picks);
    6267        void createPickupList();
    6368        void destroyAll();
     
    6974    };
    7075}
     76
     77#endif
Note: See TracChangeset for help on using the changeset viewer.