Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 25, 2009, 5:54:42 PM (15 years ago)
Author:
Aurelian
Message:

Final commit of gametype asteroids for presentation. everything working. New gadget: Radar displays the next checkpoint to reach!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/worldentities/ForceField.h

    r3033 r3064  
    3636namespace orxonox
    3737{
    38   class _OrxonoxExport ForceField : public StaticEntity, public Tickable
    39   {
     38    class _OrxonoxExport ForceField : public StaticEntity, public Tickable
     39    {
    4040    public:
    41       ForceField(BaseObject* creator);
    42       virtual ~ForceField();
    43       virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a CheckPoint object through XML.
    44       virtual void tick(float dt);
     41        ForceField(BaseObject* creator);
     42        virtual ~ForceField();
     43        virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a CheckPoint object through XML.
     44        virtual void tick(float dt);
    4545
    46       inline void setVelocity(float vel)
    47         { this->velocity_ = vel; }
     46        inline void setVelocity(float vel)
     47            { this->velocity_ = vel; }
    4848   
    49       inline float getVelocity()
    50         { return velocity_; }
     49        inline float getVelocity()
     50            { return velocity_; }
    5151   
    52       inline void setDiameter(float diam)
    53         { this->diameter_ = diam; }
     52        inline void setDiameter(float diam)
     53            { this->diameter_ = diam; }
    5454
    55       inline float getDiameter()
    56         { return diameter_; }
     55        inline float getDiameter()
     56            { return diameter_; }
    5757 
    58       inline void setLength(float l)
    59         { this->length_ = l; }
     58        inline void setLength(float l)
     59            { this->length_ = l; }
    6060
    61       inline float getLength()
    62         { return length_; }
     61        inline float getLength()
     62            { return length_; }
    6363
    6464    private:
    65       float velocity_;
    66       float diameter_;
    67       float length_;
     65        float velocity_;
     66        float diameter_;
     67        float length_;
    6868  };
    6969}
Note: See TracChangeset for help on using the changeset viewer.