Changeset 10817 for code/branches/cpp11_v2/src/modules/invader
- Timestamp:
- Nov 19, 2015, 11:40:28 AM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/modules/invader
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/invader/Invader.h
r10733 r10817 49 49 Invader(Context* context); 50 50 51 virtual void start() ;52 virtual void end() ;53 virtual void addBots(unsigned int amount) {} //<! overwrite function in order to bypass the addbots command51 virtual void start() override; 52 virtual void end() override; 53 virtual void addBots(unsigned int amount) override{} //<! overwrite function in order to bypass the addbots command 54 54 55 55 void spawnEnemy(); -
code/branches/cpp11_v2/src/modules/invader/InvaderCenterPoint.h
r10624 r10817 47 47 InvaderCenterPoint(Context* context); //checks whether the gametype is actually Invader. 48 48 49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 50 50 51 51 private: -
code/branches/cpp11_v2/src/modules/invader/InvaderEnemy.h
r10733 r10817 46 46 InvaderEnemy(Context* context); 47 47 48 virtual void tick(float dt) ;48 virtual void tick(float dt) override; 49 49 virtual bool collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint); 50 virtual void damage(float damage, float healthdamage, float shielddamage, Pawn* originator, const btCollisionShape* cs) ;50 virtual void damage(float damage, float healthdamage, float shielddamage, Pawn* originator, const btCollisionShape* cs) override; 51 51 virtual void setPlayer(InvaderShip* player){this->player = player;} 52 52 -
code/branches/cpp11_v2/src/modules/invader/InvaderEnemyShooter.h
r10626 r10817 47 47 InvaderEnemyShooter(Context* context); 48 48 49 virtual void tick(float dt) ;50 virtual void damage(float damage, float healthdamage, float shielddamage, Pawn* originator, const btCollisionShape* cs) ;49 virtual void tick(float dt) override; 50 virtual void damage(float damage, float healthdamage, float shielddamage, Pawn* originator, const btCollisionShape* cs) override; 51 51 protected: 52 52 void shoot(); -
code/branches/cpp11_v2/src/modules/invader/InvaderHUDinfo.h
r9957 r10817 40 40 InvaderHUDinfo(Context* context); 41 41 42 virtual void tick(float dt) ;43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;44 virtual void changedOwner() ;42 virtual void tick(float dt) override; 43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 44 virtual void changedOwner() override; 45 45 46 46 inline void setShowLives(bool value) -
code/branches/cpp11_v2/src/modules/invader/InvaderShip.h
r10733 r10817 47 47 InvaderShip(Context* context); 48 48 49 virtual void tick(float dt) ;49 virtual void tick(float dt) override; 50 50 51 51 // overwrite for 2d movement 52 virtual void moveFrontBack(const Vector2& value) ;53 virtual void moveRightLeft(const Vector2& value) ;52 virtual void moveFrontBack(const Vector2& value) override; 53 virtual void moveRightLeft(const Vector2& value) override; 54 54 55 55 // Starts or stops fireing 56 virtual void boost(bool bBoost) ;56 virtual void boost(bool bBoost) override; 57 57 58 58 //no rotation! 59 virtual void rotateYaw(const Vector2& value) {};60 virtual void rotatePitch(const Vector2& value) {};59 virtual void rotateYaw(const Vector2& value) override{}; 60 virtual void rotatePitch(const Vector2& value) override{}; 61 61 //return to main menu if game has ended. 62 virtual void rotateRoll(const Vector2& value) ;62 virtual void rotateRoll(const Vector2& value) override; 63 63 64 64 virtual void updateLevel(); … … 67 67 68 68 protected: 69 virtual void death() ;69 virtual void death() override; 70 70 private: 71 71 Invader* getGame(); -
code/branches/cpp11_v2/src/modules/invader/InvaderWeapon.h
r10733 r10817 48 48 virtual ~InvaderWeapon(); 49 49 protected: 50 virtual void shot() ;50 virtual void shot() override; 51 51 WeakPtr<Projectile> projectile; 52 52 }; -
code/branches/cpp11_v2/src/modules/invader/InvaderWeaponEnemy.h
r10733 r10817 47 47 InvaderWeaponEnemy(Context* context); 48 48 protected: 49 virtual void shot() ;49 virtual void shot() override; 50 50 }; 51 51 }
Note: See TracChangeset
for help on using the changeset viewer.