Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 26, 2008, 7:48:26 PM (15 years ago)
Author:
dsommer
Message:

Added ShipEquipment to Pawn and various funtions for it -not compiling, because private…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pickups2/src/orxonox/objects/pickup/ShipEquipment.h

    r2094 r2289  
    33#define _ShipEquipment_H__
    44#include <string>
    5 #include <multimap>
     5#include <map>
     6#include "Item.h"
    67
    78
     
    1112
    1213
     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()) */
    1320namespace orxonox
    1421{
     
    1623    {
    1724        public:
    18             void AddItem(Shipitem toAddItem);
    19             void RemoveItem(Shipitem toRemoveItem);
    20             bool CheckifValid(Shipitem toBeChecked);
    21             int
     25        inline int getSpace()
     26        {
     27        return Usable.size()+Trunk.size();
     28        };
     29
     30//      const std::multimap<std::string, Item*>& getEquipment() const { return this->Equipment; }
    2231
    2332        private:
    2433            std::multimap<std::string, Item*> Equipment;
     34            std::multimap<std::string, Item*> Usable;
     35            std::multimap<std::string, Item*> Trunk;
    2536    };
    2637}
     
    3950
    4051
    41 
    42 
    43 
    44 
    4552#endif
Note: See TracChangeset for help on using the changeset viewer.