Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2008, 4:07:49 PM (15 years ago)
Author:
dsommer
Message:

Aufnehmen von festen Item und wieder ablegen

File:
1 edited

Legend:

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

    r2294 r2324  
    33#include <string>
    44#include <map>
    5 #include "Item.h"
    65
    76/*
     
    1817namespace orxonox
    1918{
     19    class Item;
     20
    2021    class _OrxonoxExport ShipEquipment
    2122    {
     
    2728        bool insert(Item* item);
    2829        bool erase (Item* item);
    29         const bool checkSlot(Item* item) const;
     30        void eraseAll();
     31        bool checkSlot(Item* item);
    3032//      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;}
    3139
    3240        private:
     41            Pawn* player;
    3342            std::multimap<std::string, Item*> Equipment;
    3443            std::multimap<std::string, Item*> Usable;
Note: See TracChangeset for help on using the changeset viewer.