Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Turbo funktioniert

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pickups2/src/orxonox/objects/pickup/Turbo.h

    r2202 r2227  
     1#ifndef _Turbo_H__
     2#define _Turbo_H__
     3
    14#include "tools/Timer.h"
     5#include "Item.h"
     6#include "OrxonoxPrereqs.h"
    27
    38namespace orxonox
    49{
    5         class _OrxonoxExport Turbo: public Item
     10        class _OrxonoxExport Turbo : public Item
    611        {
    712       
    813        public:
    9         void setSpeedBoost(int boost, float duration, Spaceship* ship)
    10         void unsetSpeedBoost(int boost, Spaceship* ship)
     14        Turbo(BaseObject* creator);
     15        virtual ~Turbo();
     16
     17        virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
     18
     19        virtual bool pickedUp(Pawn* player);
     20        virtual bool dropped(Pawn* player); //erst bei festen Items
     21
     22        void setSpeedBoost(SpaceShip* ship);
     23        void unsetSpeedBoost(SpaceShip* ship);
     24
     25        inline void setBoost(float boost)
     26                { this->boost_ = boost; }
     27        inline float getBoost() const
     28                { return this->boost_; }
     29
     30        inline void setDuration(float duration)
     31                { this->duration_ = duration; }
     32        inline float getDuration() const
     33                { return this->duration_; }
     34
     35       
     36        inline void setAccBoost(float accboost)
     37                { this->accboost_ = accboost; }
     38        inline float getAccBoost() const
     39                { return this->accboost_; }
     40
    1141        private:
    1242        Timer<Turbo> turbotimer_;
    13         float boost;
    14         float duration;
    15         }
     43        float boost_;
     44        float duration_;
     45        float accboost_;
     46        };
    1647}
     48
     49#endif /* _Turbo_H__ */
Note: See TracChangeset for help on using the changeset viewer.