Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/pickups2/src/orxonox/objects/pickup/PickupSpawner.h @ 2274

Last change on this file since 2274 was 2227, checked in by dsommer, 16 years ago

Turbo funktioniert

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