| Rev | Line | |
|---|
| [2227] | 1 | #ifndef _PickupSpawner_H__ |
|---|
| 2 | #define _PickupSpawner_H__ |
|---|
| [2202] | 3 | |
|---|
| [2227] | 4 | #include "OrxonoxPrereqs.h" |
|---|
| [2294] | 5 | #include "Item.h" |
|---|
| [2202] | 6 | |
|---|
| [2227] | 7 | #include "objects/worldentities/PositionableEntity.h" |
|---|
| 8 | #include "objects/Tickable.h" |
|---|
| 9 | |
|---|
| [2202] | 10 | namespace orxonox |
|---|
| 11 | { |
|---|
| [2227] | 12 | class _OrxonoxExport PickupSpawner : public PositionableEntity, public Tickable |
|---|
| [2202] | 13 | { |
|---|
| 14 | public: |
|---|
| 15 | PickupSpawner(BaseObject* creator); |
|---|
| 16 | virtual ~PickupSpawner(); |
|---|
| 17 | |
|---|
| [2227] | 18 | virtual void tick(float dt); |
|---|
| 19 | |
|---|
| [2202] | 20 | virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); |
|---|
| [2227] | 21 | virtual void triggering(Pawn* trigger); // Wenn ein Spieler in die Naehe kommt |
|---|
| [2202] | 22 | |
|---|
| 23 | void setItemTemplate(const std::string& itemtemplate); |
|---|
| [2227] | 24 | inline const std::string& getItemTemplate() const |
|---|
| [2202] | 25 | { return this->itemtemplate_; } |
|---|
| [2227] | 26 | |
|---|
| 27 | inline void setDistance(float distance) |
|---|
| 28 | { this->distance_ = distance; } |
|---|
| 29 | inline float getDistance() const |
|---|
| 30 | { return this->distance_; } |
|---|
| [2202] | 31 | |
|---|
| 32 | private: |
|---|
| 33 | std::string itemtemplate_; |
|---|
| 34 | Template* template_; |
|---|
| [2227] | 35 | float distance_; |
|---|
| 36 | }; |
|---|
| 37 | } |
|---|
| 38 | |
|---|
| 39 | #endif /* _PickupSpawner_H__ */ |
|---|
| [2202] | 40 | |
|---|
| 41 | |
|---|
| 42 | |
|---|
| 43 | |
|---|
| 44 | |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | |
|---|
| 48 | |
|---|
| 49 | |
|---|
| 50 | |
|---|
| 51 | |
|---|
| 52 | |
|---|
| 53 | |
|---|
| 54 | |
|---|
| 55 | |
|---|
| 56 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.