Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 2289 was 2289, checked in by dsommer, 15 years ago

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

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