Changeset 10661 for code/branches/hoverHS15/src/modules/hover/HoverShip.h
- Timestamp:
- Oct 19, 2015, 2:53:51 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hoverHS15/src/modules/hover/HoverShip.h
r10659 r10661 43 43 44 44 #include "Hover.h" // Is necessary for getGame function 45 //#include "DodgeRaceCenterPoint.h"46 45 47 46 namespace orxonox 48 47 { 49 class _ DodgeRaceExport DodgeRaceShip : public SpaceShip48 class _HoverExport HoverShip : public SpaceShip 50 49 { 51 50 public: 52 DodgeRaceShip(Context* context);51 HoverShip(Context* context); 53 52 54 53 virtual void tick(float dt); 55 56 // overwrite for 2d movement57 virtual void moveFrontBack(const Vector2& value);58 virtual void moveRightLeft(const Vector2& value);59 60 // Starts or stops fireing61 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 Velocity86 {87 float x;88 float y;89 } velocity, desiredVelocity;90 54 91 55 };
Note: See TracChangeset
for help on using the changeset viewer.