- Timestamp:
- Jan 10, 2016, 1:54:11 PM (9 years ago)
- Location:
- code/branches/cpp11_v3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v3
- Property svn:mergeinfo changed
-
code/branches/cpp11_v3/src/modules/invader/InvaderShip.h
r10624 r11054 37 37 #include "invader/InvaderPrereqs.h" 38 38 39 #include "weapons/WeaponsPrereqs.h" 39 40 #include "worldentities/pawns/SpaceShip.h" 40 #include "graphics/Camera.h"41 #include "weapons/projectiles/Projectile.h"42 41 43 42 namespace orxonox … … 48 47 InvaderShip(Context* context); 49 48 50 virtual void tick(float dt) ;49 virtual void tick(float dt) override; 51 50 52 51 // overwrite for 2d movement 53 virtual void moveFrontBack(const Vector2& value) ;54 virtual void moveRightLeft(const Vector2& value) ;52 virtual void moveFrontBack(const Vector2& value) override; 53 virtual void moveRightLeft(const Vector2& value) override; 55 54 56 55 // Starts or stops fireing 57 virtual void boost(bool bBoost) ;56 virtual void boost(bool bBoost) override; 58 57 59 58 //no rotation! 60 virtual void rotateYaw(const Vector2& value) {};61 virtual void rotatePitch(const Vector2& value) {};59 virtual void rotateYaw(const Vector2& value) override{}; 60 virtual void rotatePitch(const Vector2& value) override{}; 62 61 //return to main menu if game has ended. 63 virtual void rotateRoll(const Vector2& value) {if (getGame()) if (getGame()->bEndGame) getGame()->end();};62 virtual void rotateRoll(const Vector2& value) override; 64 63 65 64 virtual void updateLevel(); 66 65 67 virtual inline bool collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint);66 virtual inline bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint) override; 68 67 69 68 protected: 70 virtual void death() ;69 virtual void death() override; 71 70 private: 72 71 Invader* getGame();
Note: See TracChangeset
for help on using the changeset viewer.