Line | |
---|
1 | #ifndef _PickupSpawner_H__ |
---|
2 | #define _PickupSpawner_H__ |
---|
3 | |
---|
4 | #include "OrxonoxPrereqs.h" |
---|
5 | #include "Item.h" |
---|
6 | |
---|
7 | #include "objects/worldentities/PositionableEntity.h" |
---|
8 | #include "objects/Tickable.h" |
---|
9 | |
---|
10 | namespace orxonox |
---|
11 | { |
---|
12 | class _OrxonoxExport PickupSpawner : public PositionableEntity, public Tickable |
---|
13 | { |
---|
14 | public: |
---|
15 | PickupSpawner(BaseObject* creator); |
---|
16 | virtual ~PickupSpawner(); |
---|
17 | |
---|
18 | virtual void tick(float dt); |
---|
19 | |
---|
20 | virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); |
---|
21 | virtual void triggering(Pawn* trigger); // Wenn ein Spieler in die Naehe kommt |
---|
22 | |
---|
23 | void setItemTemplate(const std::string& itemtemplate); |
---|
24 | inline const std::string& getItemTemplate() const |
---|
25 | { return this->itemtemplate_; } |
---|
26 | |
---|
27 | inline void setDistance(float distance) |
---|
28 | { this->distance_ = distance; } |
---|
29 | inline float getDistance() const |
---|
30 | { return this->distance_; } |
---|
31 | |
---|
32 | private: |
---|
33 | std::string itemtemplate_; |
---|
34 | Template* template_; |
---|
35 | float distance_; |
---|
36 | }; |
---|
37 | } |
---|
38 | |
---|
39 | #endif /* _PickupSpawner_H__ */ |
---|
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.