Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 19, 2008, 4:06:51 PM (15 years ago)
Author:
dsommer
Message:

Turbo funktioniert

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__
    13
     4#include "OrxonoxPrereqs.h"
     5
     6#include "objects/worldentities/PositionableEntity.h"
     7#include "objects/Tickable.h"
    28
    39namespace orxonox
    410{
    5         class _OrxonoxExport PickupSpawner: public PositionableEnity
     11        class _OrxonoxExport PickupSpawner : public PositionableEntity, public Tickable
    612        {
    713        public:
     
    915        virtual ~PickupSpawner();
    1016
     17        virtual void tick(float dt);
     18
    1119        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
    1621
    1722        void setItemTemplate(const std::string& itemtemplate);
    18         inline const sdt::string& getItemTemplate() const
     23        inline const std::string& getItemTemplate() const
    1924                { return this->itemtemplate_; }
     25
     26        inline void setDistance(float distance)
     27                { this->distance_ = distance; }
     28        inline float getDistance() const
     29                { return this->distance_; }
    2030       
    2131        private:
    2232        std::string itemtemplate_;
    2333        Template* template_;
    24         bool isActive;
    25         }
    26        
    27        
     34        float distance_;
     35        };
     36}
     37
     38#endif /* _PickupSpawner_H__ */
    2839       
    2940
     
    4354
    4455
    45 }
Note: See TracChangeset for help on using the changeset viewer.