- Timestamp:
- Nov 26, 2008, 7:48:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickups2/src/orxonox/objects/pickup/ShipEquipment.h
r2094 r2289 3 3 #define _ShipEquipment_H__ 4 4 #include <string> 5 #include <multimap> 5 #include <map> 6 #include "Item.h" 6 7 7 8 … … 11 12 12 13 14 /* std::map<std::itemtype, Item*> EQClasses; 15 EQClasses["jacke"] = 0; 16 Item* item = itemMap_["jacke"]; 17 18 if (itemMap_["jacke"]) 19 if (itemMap_.find("jacke") != itemMap_.end()) */ 13 20 namespace orxonox 14 21 { … … 16 23 { 17 24 public: 18 void AddItem(Shipitem toAddItem); 19 void RemoveItem(Shipitem toRemoveItem); 20 bool CheckifValid(Shipitem toBeChecked); 21 int 25 inline int getSpace() 26 { 27 return Usable.size()+Trunk.size(); 28 }; 29 30 // const std::multimap<std::string, Item*>& getEquipment() const { return this->Equipment; } 22 31 23 32 private: 24 33 std::multimap<std::string, Item*> Equipment; 34 std::multimap<std::string, Item*> Usable; 35 std::multimap<std::string, Item*> Trunk; 25 36 }; 26 37 } … … 39 50 40 51 41 42 43 44 45 52 #endif
Note: See TracChangeset
for help on using the changeset viewer.