Rev | Line | |
---|
[2128] | 1 | |
---|
| 2 | #ifndef _ShipEquipment_H__ |
---|
| 3 | #define _ShipEquipment_H__ |
---|
| 4 | #include <string> |
---|
| 5 | #include "SpaceShip.h" |
---|
| 6 | #include <map> |
---|
| 7 | |
---|
| 8 | |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | |
---|
| 13 | /* std::map<std::itemtype, Item*> EQClasses; |
---|
| 14 | EQClasses["jacke"] = 0; |
---|
| 15 | |
---|
| 16 | Item* item = itemMap_["jacke"]; |
---|
| 17 | |
---|
| 18 | if (itemMap_["jacke"]) |
---|
| 19 | if (itemMap_.find("jacke") != itemMap_.end()) */ |
---|
| 20 | namespaces orxonox{ |
---|
| 21 | |
---|
| 22 | class _OrxonoxExport ShipEquipment{ |
---|
| 23 | public: |
---|
| 24 | void AddItem(Shipitem* toAddItem); |
---|
| 25 | void RemoveItem(Shipitem* toRemoveItem); |
---|
| 26 | bool CheckifValid(Shipitem* toBeChecked); |
---|
| 27 | int |
---|
| 28 | private: |
---|
| 29 | std::map<std::string, Item*> Shipitems; |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.