#ifndef _ShipEquipment_H__ #define _ShipEquipment_H__ #include #include #include "Item.h" /* multimap equipment_; equipment_.insert(pair("Weapon", new Item()));*/ /* std::map EQClasses; EQClasses["jacke"] = 0; Item* item = itemMap_["jacke"]; if (itemMap_["jacke"]) if (itemMap_.find("jacke") != itemMap_.end()) */ namespace orxonox { class _OrxonoxExport ShipEquipment { public: inline int getSpace() { return Usable.size()+Trunk.size(); }; bool insert(Item* item); bool erase (Item* item); bool checkSlot(Item* item) const; // const std::multimap& getEquipment() const { return this->Equipment; } private: std::multimap Equipment; std::multimap Usable; std::multimap Trunk; }; } #endif