Last change
on this file since 2208 was
2094,
checked in by landauf, 16 years ago
|
found more tabs in pickups
|
-
Property svn:eol-style set to
native
|
File size:
934 bytes
|
Rev | Line | |
---|
[1998] | 1 | |
---|
| 2 | #ifndef _ShipEquipment_H__ |
---|
| 3 | #define _ShipEquipment_H__ |
---|
| 4 | #include <string> |
---|
| 5 | #include "SpaceShip.h" |
---|
| 6 | #include <map> |
---|
| 7 | |
---|
| 8 | |
---|
| 9 | /* |
---|
| 10 | multimap<std::string, Item*> equipment_; |
---|
| 11 | equipment_.insert(pair<std::string, Item*>("Weapon", new Item()));*/ |
---|
| 12 | |
---|
| 13 | |
---|
[2094] | 14 | /* std::map<std::itemtype, Item*> EQClasses; |
---|
| 15 | EQClasses["jacke"] = 0; |
---|
[1998] | 16 | Item* item = itemMap_["jacke"]; |
---|
[2083] | 17 | |
---|
[1998] | 18 | if (itemMap_["jacke"]) |
---|
| 19 | if (itemMap_.find("jacke") != itemMap_.end()) */ |
---|
[2094] | 20 | namespace orxonox |
---|
| 21 | { |
---|
| 22 | class _OrxonoxExport ShipEquipment |
---|
| 23 | { |
---|
| 24 | public: |
---|
| 25 | void AddItem(Shipitem* toAddItem); |
---|
| 26 | void RemoveItem(Shipitem* toRemoveItem); |
---|
| 27 | bool CheckifValid(Shipitem* toBeChecked); |
---|
| 28 | bool CheckifSpace(); |
---|
[2083] | 29 | |
---|
[2094] | 30 | private: |
---|
| 31 | multimap<std::string, ShipItem*> Equipment; |
---|
| 32 | multimap<std::string, ShipItem*> Usable; |
---|
| 33 | multimap<std::string, ShipItem*> Trunk; |
---|
| 34 | }; |
---|
[2055] | 35 | } |
---|
[1998] | 36 | |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | |
---|
[2055] | 49 | |
---|
[2089] | 50 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.