Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/pickups2/src/orxonox/objects/pickup/Item.h @ 2735

Last change on this file since 2735 was 2324, checked in by dsommer, 16 years ago

Aufnehmen von festen Item und wieder ablegen

File size: 893 bytes
RevLine 
[2227]1#ifndef _Item_H__
2#define _Item_H__
3
4#include "core/BaseObject.h"
5#include "OrxonoxPrereqs.h"
6
[2202]7namespace orxonox
8{
[2324]9        class ShipEquipment;
10
[2227]11        class _OrxonoxExport Item : public BaseObject
[2202]12        {
13        public:
[2227]14        Item( BaseObject* creator);
15        virtual ~Item();
[2289]16        bool checkSlot(Pawn* player);
[2227]17        virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
[2289]18       
[2227]19        virtual bool pickedUp(Pawn* player) { return true; }
20        virtual bool dropped(Pawn* player) { return true; } //erst bei festen Items
[2289]21        bool remove(Pawn* player);
[2293]22        bool addTo(Pawn* player);
[2227]23
24        inline void setPlayerBaseClass(Identifier* identifier)
25                { this->playerBaseClass_ = identifier; }
26        inline Identifier* getPlayerBaseClass() const
27                { return this->playerBaseClass_; }
[2202]28       
29        private:
[2227]30        void setPlayerBaseClassName(const std::string& name);
31        const std::string& getPlayerBaseClassName() const;
32
[2289]33        Identifier* playerBaseClass_;
[2227]34        };
35}
[2202]36       
[2227]37#endif /* _Item_H__ */
Note: See TracBrowser for help on using the repository browser.