Rev | Line | |
---|
[2227] | 1 | #ifndef _Item_H__ |
---|
| 2 | #define _Item_H__ |
---|
| 3 | |
---|
| 4 | #include "core/BaseObject.h" |
---|
| 5 | #include "OrxonoxPrereqs.h" |
---|
| 6 | |
---|
[2202] | 7 | namespace orxonox |
---|
| 8 | { |
---|
[2227] | 9 | class _OrxonoxExport Item : public BaseObject |
---|
[2202] | 10 | { |
---|
| 11 | public: |
---|
[2227] | 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 |
---|
[2202] | 19 | void addTo(Pawn* player); |
---|
[2227] | 20 | |
---|
| 21 | inline void setPlayerBaseClass(Identifier* identifier) |
---|
| 22 | { this->playerBaseClass_ = identifier; } |
---|
| 23 | inline Identifier* getPlayerBaseClass() const |
---|
| 24 | { return this->playerBaseClass_; } |
---|
[2202] | 25 | |
---|
| 26 | private: |
---|
[2227] | 27 | void setPlayerBaseClassName(const std::string& name); |
---|
| 28 | const std::string& getPlayerBaseClassName() const; |
---|
| 29 | |
---|
| 30 | Identifier* playerBaseClass_; //class(...) |
---|
| 31 | }; |
---|
| 32 | } |
---|
[2202] | 33 | |
---|
[2227] | 34 | #endif /* _Item_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.