Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 19, 2015, 2:53:51 PM (10 years ago)
Author:
bucyril
Message:

Removed custom code

M hover/HoverShip.cc
M hover/HoverShip.h

File:
1 edited

Legend:

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

    r10659 r10661  
    4343
    4444#include "Hover.h" // Is necessary for getGame function
    45 //#include "DodgeRaceCenterPoint.h"
    4645
    4746namespace orxonox
    4847{
    49     class _DodgeRaceExport DodgeRaceShip : public SpaceShip
     48    class _HoverExport HoverShip : public SpaceShip
    5049    {
    5150        public:
    52             DodgeRaceShip(Context* context);
     51            HoverShip(Context* context);
    5352
    5453            virtual void tick(float dt);
    55 
    56             // overwrite for 2d movement
    57             virtual void moveFrontBack(const Vector2& value);
    58             virtual void moveRightLeft(const Vector2& value);
    59 
    60             // Starts or stops fireing
    61             virtual void boost(bool bBoost);
    62 
    63             //no rotation!
    64             virtual void rotateYaw(const Vector2& value){};
    65             virtual void rotatePitch(const Vector2& value){};
    66 
    67             //return to main menu if game has ended.
    68             virtual void rotateRoll(const Vector2& value){if (getGame()) if (getGame()->bEndGame) getGame()->end();};
    69 
    70             virtual void updateLevel();
    71 
    72             float speed, damping, posforeward;
    73             bool isFireing;
    74 
    75         protected:
    76             virtual void death();
    77 
    78         private:
    79             virtual inline bool collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint);
    80             DodgeRace* getGame();
    81             WeakPtr<DodgeRace> game;
    82             WeakPtr<WorldEntity> lastEntity;
    83             Camera* camera;
    84             float lastTimeFront, lastTimeLeft, lastTime;
    85             struct Velocity
    86             {
    87                 float x;
    88                 float y;
    89             } velocity, desiredVelocity;
    9054
    9155    };
Note: See TracChangeset for help on using the changeset viewer.