Changeset 10817 for code/branches/cpp11_v2/src/modules/dodgerace
- Timestamp:
- Nov 19, 2015, 11:40:28 AM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/modules/dodgerace
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/dodgerace/DodgeRace.h
r10624 r10817 69 69 DodgeRace(Context* context); 70 70 71 virtual void start() ;72 virtual void end() ;71 virtual void start() override; 72 virtual void end() override; 73 73 74 virtual void tick(float dt) ;74 virtual void tick(float dt) override; 75 75 76 virtual void playerPreSpawn(PlayerInfo* player) ;76 virtual void playerPreSpawn(PlayerInfo* player) override; 77 77 78 78 void levelUp(); … … 85 85 void setCenterpoint(DodgeRaceCenterPoint* center) 86 86 { this->center_ = center; } 87 virtual void addBots(unsigned int amount) {} //<! overwrite function in order to bypass the addbots command87 virtual void addBots(unsigned int amount) override{} //<! overwrite function in order to bypass the addbots command 88 88 89 89 // checks if multiplier should be reset. -
code/branches/cpp11_v2/src/modules/dodgerace/DodgeRaceCenterPoint.h
r10624 r10817 50 50 DodgeRaceCenterPoint(Context* context); //checks whether the gametype is actually DodgeRace. 51 51 52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 53 53 54 54 private: -
code/branches/cpp11_v2/src/modules/dodgerace/DodgeRaceHUDinfo.h
r10234 r10817 44 44 DodgeRaceHUDinfo(Context* context); 45 45 46 virtual void tick(float dt) ;47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;48 virtual void changedOwner() ;46 virtual void tick(float dt) override; 47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 48 virtual void changedOwner() override; 49 49 50 50 inline void setShowPoints(bool value) -
code/branches/cpp11_v2/src/modules/dodgerace/DodgeRaceShip.h
r10624 r10817 52 52 DodgeRaceShip(Context* context); 53 53 54 virtual void tick(float dt) ;54 virtual void tick(float dt) override; 55 55 56 56 // overwrite for 2d movement 57 virtual void moveFrontBack(const Vector2& value) ;58 virtual void moveRightLeft(const Vector2& value) ;57 virtual void moveFrontBack(const Vector2& value) override; 58 virtual void moveRightLeft(const Vector2& value) override; 59 59 60 60 // Starts or stops fireing 61 virtual void boost(bool bBoost) ;61 virtual void boost(bool bBoost) override; 62 62 63 63 //no rotation! 64 virtual void rotateYaw(const Vector2& value) {};65 virtual void rotatePitch(const Vector2& value) {};64 virtual void rotateYaw(const Vector2& value) override{}; 65 virtual void rotatePitch(const Vector2& value) override{}; 66 66 67 67 //return to main menu if game has ended. 68 virtual void rotateRoll(const Vector2& value) {if (getGame()) if (getGame()->bEndGame) getGame()->end();};68 virtual void rotateRoll(const Vector2& value) override{if (getGame()) if (getGame()->bEndGame) getGame()->end();}; 69 69 70 70 virtual void updateLevel(); … … 74 74 75 75 protected: 76 virtual void death() ;76 virtual void death() override; 77 77 78 78 private:
Note: See TracChangeset
for help on using the changeset viewer.