Index: code/branches/HUD_HS16/src/modules/pickup/PickupManager.cc
===================================================================
--- code/branches/HUD_HS16/src/modules/pickup/PickupManager.cc	(revision 11277)
+++ code/branches/HUD_HS16/src/modules/pickup/PickupManager.cc	(revision 11305)
@@ -51,5 +51,5 @@
 #include "CollectiblePickup.h"
 #include "PickupRepresentation.h"
-// #include "overlays/hud/HUDPickupSystem.h"
+#include "overlays/hud/HUDPickupSystem.h"
 
 namespace orxonox
@@ -70,5 +70,4 @@
     SetConsoleCommand("useUnusePickup", &PickupManager::useUnusePickup).addShortcut().setActive(true);
 
-   // SetConsoleCommand("HumanController", "fire",           &HumanController::fire          ).addShortcut().keybindMode(KeybindMode::OnHold);
     /**
     @brief
@@ -82,4 +81,9 @@
 
         orxout(internal_info, context::pickups) << "PickupManager created." << endl;
+    }
+
+    void PickupManager::setPickupSystem(HUDPickupSystem* system)
+    {
+        pickupSystem=system;
     }
 
@@ -295,9 +299,18 @@
             this->pickups_[index] = pickup;
 
-            //  //Add pickup keybinding
-            // if( KeyBinderManager::exists() )
-            //     addKeyBindingForNewPickup(pickup, index);
-            // else
-            //     orxout() << "Could not create new keybinding because KeyBinderManager doesn't exist." << endl;
+            //TODO
+            std::vector<Pickupable*> picks;
+
+            PickupManager& manager = PickupManager::getInstance();
+            
+            Pickupable* pickup = nullptr;
+
+            for(uint32_t i = 0; i!=10; i++)
+            {
+                pickup=manager.pickups_.find(i)->second;
+                picks.push_back(pickup);
+            }
+            // pickupSystem->updatePickupList(picks);
+            
         }
         else // If it was dropped, it is removed from the required lists.
@@ -307,11 +320,5 @@
             index = it->second;
 
-            // //Remove pickup keybinding
-            // if( KeyBinderManager::exists() )
-            //       removeKeyBindingForOldPickup(pickup, index);
-            // else
-            //     orxout() << "Could not delete old keybinding because KeyBinderManager doesn't exist." << endl;
-
-            // Remove the Pickupable from the indexes_ and pickups_ list.
+            
             this->indexes_.erase(pickup);
             this->pickups_.find(index)->second=nullptr; //set to null, so that can be identified as free slot by getPickupIndex()
@@ -342,38 +349,4 @@
 
     }
-
-    //PRECONDITION: KeyBinderManager exists, pickup is not NULL, 0 < index < 9
-    //FUNCTION: Adds a keybinding for the new pickup using its index and sets a console command
-    // void PickupManager::addKeyBindingForNewPickup(Pickupable* pickup, uint32_t index)
-    // {
-    //     std::string name="Keys.KeyNumpad";
-    //     std::string binding="useOrUnusePickup";
-
-    //     name.append(std::to_string(index));
-    //     binding.append(std::to_string(index));
-
-    //     SetConsoleCommand(binding, &PickupManager::useUnusePickup(pickup, index));
-    //     KeyBinderManager::getInstance().getCurrent()->setBinding(binding, name, true); 
-
-    //     orxout() << "Keybinding for item " << index << " has been added on keybinding " << name << endl;
-
-
-    // }
-
-    //PRECONDITION: KeyBinderManager exists, pickup is not NULL, 0 < index < 9
-    //FUNCTION: Removes the keybinding of the pickup using its index
-    // void PickupManager::removeKeyBindingForOldPickup(Pickupable* pickup, uint32_t index)
-    // {
-    //     std::string name="Keys.KeyNumpad";
-    //     std::string binding="";
-
-    //     name.append(std::to_string(index));
-
-    //     SetConsoleCommand(binding, nullptr);
-    //     KeyBinderManager::getInstance().getCurrent()->setBinding("", name, true); 
-
-    //     orxout() << "Keybinding for item " << index << " has been removed on keybinding " << name << endl;
-
-    // }
 
     //This function is called by the command line or by the key binding
