- Timestamp:
- Nov 19, 2008, 4:06:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickups2/src/orxonox/objects/pickup/PickupSpawner.h
r2202 r2227 1 #ifndef _PickupSpawner_H__ 2 #define _PickupSpawner_H__ 1 3 4 #include "OrxonoxPrereqs.h" 5 6 #include "objects/worldentities/PositionableEntity.h" 7 #include "objects/Tickable.h" 2 8 3 9 namespace orxonox 4 10 { 5 class _OrxonoxExport PickupSpawner : public PositionableEnity11 class _OrxonoxExport PickupSpawner : public PositionableEntity, public Tickable 6 12 { 7 13 public: … … 9 15 virtual ~PickupSpawner(); 10 16 17 virtual void tick(float dt); 18 11 19 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 12 virtual void processEvent(Event& event); 13 virtual void changedActivity(); 14 virtual void triggering(bool active, DistanceTrigger* trigger); // Wenn ein Spieler in die Naehe kommt 15 void activateSpawner(bool active); 20 virtual void triggering(Pawn* trigger); // Wenn ein Spieler in die Naehe kommt 16 21 17 22 void setItemTemplate(const std::string& itemtemplate); 18 inline const s dt::string& getItemTemplate() const23 inline const std::string& getItemTemplate() const 19 24 { return this->itemtemplate_; } 25 26 inline void setDistance(float distance) 27 { this->distance_ = distance; } 28 inline float getDistance() const 29 { return this->distance_; } 20 30 21 31 private: 22 32 std::string itemtemplate_; 23 33 Template* template_; 24 bool isActive; 25 } 26 27 34 float distance_; 35 }; 36 } 37 38 #endif /* _PickupSpawner_H__ */ 28 39 29 40 … … 43 54 44 55 45 }
Note: See TracChangeset
for help on using the changeset viewer.