- Timestamp:
- Dec 3, 2008, 4:07:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickups2/src/orxonox/objects/pickup/ShipEquipment.h
r2294 r2324 3 3 #include <string> 4 4 #include <map> 5 #include "Item.h"6 5 7 6 /* … … 18 17 namespace orxonox 19 18 { 19 class Item; 20 20 21 class _OrxonoxExport ShipEquipment 21 22 { … … 27 28 bool insert(Item* item); 28 29 bool erase (Item* item); 29 const bool checkSlot(Item* item) const; 30 void eraseAll(); 31 bool checkSlot(Item* item); 30 32 // const std::multimap<std::string, Item*>& getEquipment() const { return this->Equipment; } 33 inline std::multimap<std::string, Item*>& getEquipment() {return this->Equipment;} 34 inline std::multimap<std::string, Item*>& getUsable() {return this->Usable;} 35 inline std::multimap<std::string, Item*>& getTrunk() {return this->Trunk;} 36 inline Pawn* getPlayer() {return this->player ;} 37 inline void setPlayer(Pawn* setplayer) 38 {this->player = setplayer;} 31 39 32 40 private: 41 Pawn* player; 33 42 std::multimap<std::string, Item*> Equipment; 34 43 std::multimap<std::string, Item*> Usable;
Note: See TracChangeset
for help on using the changeset viewer.