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