Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Turbo funktioniert

File size: 824 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
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        void addTo(Pawn* player);
20
21        inline void setPlayerBaseClass(Identifier* identifier)
22                { this->playerBaseClass_ = identifier; }
23        inline Identifier* getPlayerBaseClass() const
24                { return this->playerBaseClass_; }
25       
26        private:
27        void setPlayerBaseClassName(const std::string& name);
28        const std::string& getPlayerBaseClassName() const;
29
30        Identifier* playerBaseClass_; //class(...)
31        };
32}
33       
34#endif /* _Item_H__ */
Note: See TracBrowser for help on using the repository browser.