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