Last change
on this file since 2955 was
2662,
checked in by rgrieder, 16 years ago
|
Merged presentation branch back to trunk.
|
-
Property svn:eol-style set to
native
|
File size:
914 bytes
|
Line | |
---|
1 | #ifndef _BaseItem_H__ |
---|
2 | #define _BaseItem_H__ |
---|
3 | |
---|
4 | #include "core/BaseObject.h" |
---|
5 | #include "OrxonoxPrereqs.h" |
---|
6 | |
---|
7 | namespace orxonox |
---|
8 | { |
---|
9 | class ShipEquipment; |
---|
10 | |
---|
11 | class _OrxonoxExport BaseItem : public BaseObject |
---|
12 | { |
---|
13 | public: |
---|
14 | BaseItem( BaseObject* creator); |
---|
15 | virtual ~BaseItem(); |
---|
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 /* _BaseItem_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.