Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/pickups/src/orxonox/objects/pickup/ShipEquipmentClasses.h @ 2109

Last change on this file since 2109 was 2083, checked in by landauf, 16 years ago

made some small adjustments in Pickups branch

File size: 835 bytes
RevLine 
[1998]1
2#ifndef _ShipEquipment_H__
3#define _ShipEquipment_H__
4#include <string>
5#include "SpaceShip.h"
6#include <map>
7
8
9/*
10multimap<std::string, Item*> equipment_;
11equipment_.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"];
[2083]17
[1998]18           if (itemMap_["jacke"])
19           if (itemMap_.find("jacke") != itemMap_.end()) */
[2083]20namespace orxonox{
21
[1998]22        class _OrxonoxExport ShipEquipment{
23        public:
[2055]24                void AddItem(Shipitem* toAddItem);
25                void RemoveItem(Shipitem* toRemoveItem);
26                bool CheckifValid(Shipitem* toBeChecked);
27                bool CheckifSpace();
[1998]28        private:
[2055]29                multimap<std::string, ShipItem*> Equipment;
30                multimap<std::string, ShipItem*> Usable;
31                multimap<std::string, ShipItem*> Trunk;
[2083]32        };
[1998]33
34
[2055]35}
[1998]36
37
38
39
40
41
42
43
44
45
46
47
48
[2055]49
[2083]50#endif
Note: See TracBrowser for help on using the repository browser.