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