Last change
on this file since 2290 was
2290,
checked in by dsommer, 16 years ago
|
shipeq private matter…
|
-
Property svn:eol-style set to
native
|
File size:
991 bytes
|
Line | |
---|
1 | |
---|
2 | #ifndef _ShipEquipment_H__ |
---|
3 | #define _ShipEquipment_H__ |
---|
4 | #include <string> |
---|
5 | #include <map> |
---|
6 | #include "Item.h" |
---|
7 | |
---|
8 | |
---|
9 | /* |
---|
10 | multimap<std::string, Item*> equipment_; |
---|
11 | equipment_.insert(pair<std::string, Item*>("Weapon", new Item()));*/ |
---|
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()) */ |
---|
20 | namespace orxonox |
---|
21 | { |
---|
22 | class _OrxonoxExport ShipEquipment |
---|
23 | { |
---|
24 | public: |
---|
25 | inline int getSpace() |
---|
26 | { |
---|
27 | return Usable.size()+Trunk.size(); |
---|
28 | }; |
---|
29 | bool insert(Item* item); |
---|
30 | bool erase (Item* item); |
---|
31 | bool checkSlot(Item* item) const; |
---|
32 | // const std::multimap<std::string, Item*>& getEquipment() const { return this->Equipment; } |
---|
33 | |
---|
34 | private: |
---|
35 | std::multimap<std::string, Item*> Equipment; |
---|
36 | std::multimap<std::string, Item*> Usable; |
---|
37 | std::multimap<std::string, Item*> Trunk; |
---|
38 | }; |
---|
39 | } |
---|
40 | |
---|
41 | |
---|
42 | |
---|
43 | |
---|
44 | |
---|
45 | |
---|
46 | |
---|
47 | |
---|
48 | |
---|
49 | |
---|
50 | |
---|
51 | |
---|
52 | |
---|
53 | |
---|
54 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.