Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 4, 2016, 6:19:07 PM (9 years ago)
Author:
landauf
Message:

cleanup in hover module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentationHS15/src/modules/hover/HoverShip.h

    r11026 r11041  
    3333#define _HoverShip_H__
    3434
    35 #include <BulletCollision/NarrowPhaseCollision/btManifoldPoint.h>
    36 
    3735#include "HoverPrereqs.h"
    3836
    39 #include "core/XMLPort.h"
    4037#include "worldentities/pawns/SpaceShip.h"
    41 #include "graphics/Camera.h"
    42 #include "core/class/Super.h"
    4338
    4439namespace orxonox
     
    4641    class _HoverExport HoverShip : public SpaceShip
    4742    {
    48     private:
    49         float jumpBoost_;
    50         bool isFloor_;
    51 
    5243        public:
    5344            HoverShip(Context* context);
    5445
    55             virtual void tick(float dt);
    56 
    5746            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    5847
    59             virtual void setJumpBoost(float jumpBoost);
    60 
    61             virtual float getJumpBoost();
     48            /// sets this ships jumpBoost
     49            inline void setJumpBoost(float jumpBoost)
     50                { this->jumpBoost_ = jumpBoost; }
     51            /// returns this ships jumpBoost
     52            inline float getJumpBoost() const
     53                { return this->jumpBoost_; }
    6254
    6355            virtual void moveFrontBack(const Vector2& value);
     
    7769            virtual void boost(bool bBoost);
    7870
     71        private:
     72            float jumpBoost_;
     73            bool isFloor_;
    7974    };
    8075}
Note: See TracChangeset for help on using the changeset viewer.