Changeset 10817 for code/branches/cpp11_v2/src/modules
- Timestamp:
- Nov 19, 2015, 11:40:28 AM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/modules
- Files:
-
- 148 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/designtools/CreateStars.h
r9667 r10817 43 43 void createBillboards(); 44 44 45 void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;45 void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 46 46 47 47 void setNumStars(int num) { -
code/branches/cpp11_v2/src/modules/designtools/SkyboxGenerator.h
r10769 r10817 65 65 SkyboxGenerator(); 66 66 virtual ~SkyboxGenerator(); 67 void tick(float dt) ; // This is where the skybox generation happens.67 void tick(float dt) override; // This is where the skybox generation happens. 68 68 static void createSkybox(void); // Generate the 6 faces of a skybox. 69 69 void setConfigValues(void); // Sets some config values. -
code/branches/cpp11_v2/src/modules/docking/Dock.h
r9939 r10817 65 65 66 66 // XML interface 67 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;68 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) ;67 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 68 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override; 69 69 70 70 // XML functions -
code/branches/cpp11_v2/src/modules/docking/DockToShip.h
r9667 r10817 60 60 virtual ~DockToShip(); 61 61 62 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;62 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 63 63 void setTargetId(const std::string& str); 64 64 const std::string& getTargetId() const; 65 65 66 virtual bool docking(PlayerInfo* player) ; //!< Called when docking starts67 virtual bool release(PlayerInfo* player) ; //!< Called when player wants undock66 virtual bool docking(PlayerInfo* player) override; //!< Called when docking starts 67 virtual bool release(PlayerInfo* player) override; //!< Called when player wants undock 68 68 private: 69 69 std::string target_; -
code/branches/cpp11_v2/src/modules/docking/DockingController.h
r9667 r10817 45 45 virtual ~DockingController(); 46 46 47 virtual void tick(float dt) ;47 virtual void tick(float dt) override; 48 48 49 49 void takeControl(bool docking); … … 53 53 54 54 protected: 55 virtual void positionReached() ;55 virtual void positionReached() override; 56 56 57 57 private: -
code/branches/cpp11_v2/src/modules/docking/DockingTarget.h
r9667 r10817 58 58 virtual ~DockingTarget(); 59 59 60 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;60 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 61 61 62 62 }; -
code/branches/cpp11_v2/src/modules/docking/MoveToDockingTarget.h
r9667 r10817 59 59 virtual ~MoveToDockingTarget(); 60 60 61 virtual bool docking(PlayerInfo* player) ; //!< Called when a player starts docking62 virtual bool release(PlayerInfo* player) ; //!< Called when player wants to undock61 virtual bool docking(PlayerInfo* player) override; //!< Called when a player starts docking 62 virtual bool release(PlayerInfo* player) override; //!< Called when player wants to undock 63 63 }; 64 64 -
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: -
code/branches/cpp11_v2/src/modules/gametypes/OldRaceCheckPoint.h
r9667 r10817 48 48 virtual ~OldRaceCheckPoint(); 49 49 50 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;51 virtual void tick(float dt) ;50 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 51 virtual void tick(float dt) override; 52 52 53 53 protected: 54 virtual void triggered(bool bIsTriggered) ;54 virtual void triggered(bool bIsTriggered) override; 55 55 inline void setLast(bool isLast) 56 56 { this->bIsLast_ = isLast; } … … 64 64 inline float getTimeLimit() 65 65 { return this->bTimeLimit_;} 66 inline const WorldEntity* getWorldEntity() const 66 inline const WorldEntity* getWorldEntity() const override 67 67 { return this; } 68 68 -
code/branches/cpp11_v2/src/modules/gametypes/OldSpaceRace.h
r9667 r10817 55 55 virtual ~OldSpaceRace() {} 56 56 57 virtual void start() ;58 virtual void end() ;57 virtual void start() override; 58 virtual void end() override; 59 59 60 60 virtual void newCheckpointReached(); 61 virtual void addBots(unsigned int amount) {} //<! overwrite function in order to bypass the addbots command.61 virtual void addBots(unsigned int amount) override{} //<! overwrite function in order to bypass the addbots command. 62 62 //<! This is only a temporary solution. Better: create racingBots. 63 63 -
code/branches/cpp11_v2/src/modules/gametypes/RaceCheckPoint.h
r9971 r10817 48 48 virtual ~RaceCheckPoint(); 49 49 50 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;50 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 51 51 52 52 inline void setCheckpointIndex(int checkpointIndex) … … 92 92 protected: 93 93 94 virtual void fire(bool bIsTriggered, BaseObject* originator) ;94 virtual void fire(bool bIsTriggered, BaseObject* originator) override; 95 95 96 inline const WorldEntity* getWorldEntity() const 96 inline const WorldEntity* getWorldEntity() const override 97 97 { 98 98 return this; -
code/branches/cpp11_v2/src/modules/gametypes/SpaceRace.h
r9667 r10817 57 57 virtual ~SpaceRace() {} 58 58 59 void tick(float dt) ;59 void tick(float dt) override; 60 60 61 virtual void end() ;61 virtual void end() override; 62 62 63 63 void newCheckpointReached(RaceCheckPoint* checkpoint, PlayerInfo* player); … … 70 70 { return this->clock_; } 71 71 72 bool allowPawnHit(Pawn* victim, Pawn* originator) ;73 bool allowPawnDamage(Pawn* victim, Pawn* originator) ;74 bool allowPawnDeath(Pawn* victim, Pawn* originator) ;72 bool allowPawnHit(Pawn* victim, Pawn* originator) override; 73 bool allowPawnDamage(Pawn* victim, Pawn* originator) override; 74 bool allowPawnDeath(Pawn* victim, Pawn* originator) override; 75 75 76 76 private: -
code/branches/cpp11_v2/src/modules/gametypes/SpaceRaceController.h
r10262 r10817 42 42 SpaceRaceController(Context* context); 43 43 virtual ~SpaceRaceController(); 44 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;45 virtual void tick(float dt) ;44 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 45 virtual void tick(float dt) override; 46 46 47 47 private: -
code/branches/cpp11_v2/src/modules/gametypes/SpaceRaceManager.h
r9667 r10817 58 58 virtual ~SpaceRaceManager() ; 59 59 60 void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;60 void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 61 61 62 62 void addCheckpoint(RaceCheckPoint* checkpoint); … … 69 69 std::vector<RaceCheckPoint*> getAllCheckpoints(); 70 70 71 void tick(float dt) ;71 void tick(float dt) override; 72 72 73 73 protected: -
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 } -
code/branches/cpp11_v2/src/modules/jump/Jump.cc
r10768 r10817 98 98 if (screenShiftSinceLastUpdate_ > center_->getSectionLength()) 99 99 { 100 if (sectionNumber_ > 2 && sectionNumber_%4 == 0 && rand()%2 == 0 && figure_->propellerActive_ == false && figure_->rocketActive_ == false&& addAdventure(adventureNumber_) == true)100 if (sectionNumber_ > 2 && sectionNumber_%4 == 0 && rand()%2 == 0 && figure_->propellerActive_ == nullptr && figure_->rocketActive_ == nullptr && addAdventure(adventureNumber_) == true) 101 101 { 102 102 screenShiftSinceLastUpdate_ -= 2*center_->getSectionLength(); -
code/branches/cpp11_v2/src/modules/jump/Jump.h
r10733 r10817 40 40 Jump(Context* context); 41 41 virtual ~Jump(); 42 virtual void tick(float dt) ;43 virtual void start() ;44 virtual void end() ;45 virtual void spawnPlayer(PlayerInfo* player) ;42 virtual void tick(float dt) override; 43 virtual void start() override; 44 virtual void end() override; 45 virtual void spawnPlayer(PlayerInfo* player) override; 46 46 int getScore(PlayerInfo* player) const; 47 47 float getFuel() const; -
code/branches/cpp11_v2/src/modules/jump/JumpBoots.h
r10733 r10817 40 40 JumpBoots(Context* context); 41 41 virtual ~JumpBoots(); 42 virtual void tick(float dt) ;43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;44 virtual void touchFigure() ;42 virtual void tick(float dt) override; 43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 44 virtual void touchFigure() override; 45 45 virtual float getFuelState(); 46 46 protected: -
code/branches/cpp11_v2/src/modules/jump/JumpCenterpoint.h
r10733 r10817 108 108 JumpCenterpoint(Context* context); //!< Constructor. Registers and initializes the object and checks whether the gametype is actually Jump. 109 109 virtual ~JumpCenterpoint() {} 110 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method to create a JumpCenterpoint through XML.110 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method to create a JumpCenterpoint through XML. 111 111 void setPlatformStaticTemplate(const std::string& balltemplate) 112 112 { this->platformStaticTemplate_ = balltemplate; } -
code/branches/cpp11_v2/src/modules/jump/JumpEnemy.h
r10733 r10817 46 46 JumpEnemy(Context* context); 47 47 virtual ~JumpEnemy(); 48 virtual void tick(float dt) ;49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;48 virtual void tick(float dt) override; 49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 50 50 void setFieldDimension(float width, float height) 51 51 { this->fieldWidth_ = width; this->fieldHeight_ = height; } -
code/branches/cpp11_v2/src/modules/jump/JumpFigure.cc
r10765 r10817 319 319 bool JumpFigure::StartShield(JumpShield* shield) 320 320 { 321 if (shieldActive_ == false)321 if (shieldActive_ == nullptr) 322 322 { 323 323 attach(shield); -
code/branches/cpp11_v2/src/modules/jump/JumpFigure.h
r10262 r10817 40 40 JumpFigure(Context* context); //!< Constructor. Registers and initializes the object. 41 41 virtual ~JumpFigure() {} 42 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;43 virtual void tick(float dt) ;44 virtual void moveFrontBack(const Vector2& value) ; //!< Overloaded the function to steer the bat up and down.45 virtual void moveRightLeft(const Vector2& value) ; //!< Overloaded the function to steer the bat up and down.46 virtual void rotateYaw(const Vector2& value) ;47 virtual void rotatePitch(const Vector2& value) ;48 virtual void rotateRoll(const Vector2& value) ;42 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 43 virtual void tick(float dt) override; 44 virtual void moveFrontBack(const Vector2& value) override; //!< Overloaded the function to steer the bat up and down. 45 virtual void moveRightLeft(const Vector2& value) override; //!< Overloaded the function to steer the bat up and down. 46 virtual void rotateYaw(const Vector2& value) override; 47 virtual void rotatePitch(const Vector2& value) override; 48 virtual void rotateRoll(const Vector2& value) override; 49 49 void fire(unsigned int firemode); 50 virtual void fired(unsigned int firemode) ;50 virtual void fired(unsigned int firemode) override; 51 51 virtual void JumpFromPlatform(JumpPlatform* platform); 52 52 virtual void JumpFromSpring(JumpSpring* spring); -
code/branches/cpp11_v2/src/modules/jump/JumpItem.h
r10733 r10817 47 47 JumpItem(Context* context); 48 48 virtual ~JumpItem(); 49 virtual void tick(float dt) ;50 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;49 virtual void tick(float dt) override; 50 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 51 51 virtual void setProperties(float newLeftBoundary, float newRightBoundary, float newLowerBoundary, float newUpperBoundary, float newHSpeed, float newVSpeed); 52 52 virtual void setFigure(JumpFigure* newFigure); -
code/branches/cpp11_v2/src/modules/jump/JumpPlatform.h
r10733 r10817 46 46 JumpPlatform(Context* context); 47 47 virtual ~JumpPlatform(); 48 virtual void tick(float dt) ;49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;48 virtual void tick(float dt) override; 49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 50 50 void setFigure(JumpFigure* newFigure); 51 51 virtual void touchFigure(); -
code/branches/cpp11_v2/src/modules/jump/JumpPlatformDisappear.h
r10733 r10817 46 46 JumpPlatformDisappear(Context* context); 47 47 virtual ~JumpPlatformDisappear(); 48 virtual void tick(float dt) ;49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;48 virtual void tick(float dt) override; 49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 50 50 virtual void setProperties(bool active); 51 51 virtual bool isActive(); 52 virtual void touchFigure() ;52 virtual void touchFigure() override; 53 53 54 54 protected: -
code/branches/cpp11_v2/src/modules/jump/JumpPlatformFake.h
r10733 r10817 46 46 JumpPlatformFake(Context* context); 47 47 virtual ~JumpPlatformFake(); 48 virtual void tick(float dt) ;49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;48 virtual void tick(float dt) override; 49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 50 50 }; 51 51 } -
code/branches/cpp11_v2/src/modules/jump/JumpPlatformHMove.h
r10733 r10817 41 41 JumpPlatformHMove(Context* context); 42 42 virtual ~JumpPlatformHMove(); 43 virtual void tick(float dt) ;44 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;43 virtual void tick(float dt) override; 44 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 45 45 virtual void setProperties(float leftBoundary, float rightBoundary, float speed); 46 virtual void touchFigure() ;46 virtual void touchFigure() override; 47 47 48 48 protected: -
code/branches/cpp11_v2/src/modules/jump/JumpPlatformStatic.h
r10733 r10817 41 41 virtual ~JumpPlatformStatic(); 42 42 43 virtual void tick(float dt) ;44 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;43 virtual void tick(float dt) override; 44 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 45 45 46 virtual void touchFigure() ;46 virtual void touchFigure() override; 47 47 }; 48 48 } -
code/branches/cpp11_v2/src/modules/jump/JumpPlatformTimer.h
r10733 r10817 46 46 JumpPlatformTimer(Context* context); 47 47 virtual ~JumpPlatformTimer(); 48 virtual void tick(float dt) ;49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;48 virtual void tick(float dt) override; 49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 50 50 virtual void setProperties(float time); 51 51 virtual bool isActive(void); 52 virtual void touchFigure() ;52 virtual void touchFigure() override; 53 53 54 54 void setEffectPath(const std::string& effectPath) -
code/branches/cpp11_v2/src/modules/jump/JumpPlatformVMove.h
r10733 r10817 40 40 JumpPlatformVMove(Context* context); 41 41 virtual ~JumpPlatformVMove(); 42 virtual void tick(float dt) ;43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;42 virtual void tick(float dt) override; 43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 44 44 virtual void setProperties(float leftBoundary, float rightBoundary, float speed); 45 virtual void touchFigure() ;45 virtual void touchFigure() override; 46 46 47 47 protected: -
code/branches/cpp11_v2/src/modules/jump/JumpProjectile.h
r10624 r10817 43 43 virtual ~JumpProjectile(); 44 44 45 virtual void tick(float dt) ;45 virtual void tick(float dt) override; 46 46 47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 48 48 49 49 void setFieldDimension(float width, float height) -
code/branches/cpp11_v2/src/modules/jump/JumpPropeller.h
r10733 r10817 40 40 JumpPropeller(Context* context); 41 41 virtual ~JumpPropeller(); 42 virtual void tick(float dt) ;43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;44 virtual void touchFigure() ;42 virtual void tick(float dt) override; 43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 44 virtual void touchFigure() override; 45 45 virtual float getFuelState(); 46 46 protected: -
code/branches/cpp11_v2/src/modules/jump/JumpRocket.h
r10733 r10817 40 40 JumpRocket(Context* context); 41 41 virtual ~JumpRocket(); 42 virtual void tick(float dt) ;43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;44 virtual void touchFigure() ;42 virtual void tick(float dt) override; 43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 44 virtual void touchFigure() override; 45 45 virtual float getFuelState(); 46 46 protected: -
code/branches/cpp11_v2/src/modules/jump/JumpScore.h
r10262 r10817 44 44 virtual ~JumpScore(); 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 void setShowScore(const bool showScore) -
code/branches/cpp11_v2/src/modules/jump/JumpShield.h
r10733 r10817 40 40 JumpShield(Context* context); 41 41 virtual ~JumpShield(); 42 virtual void tick(float dt) ;43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;44 virtual void touchFigure() ;42 virtual void tick(float dt) override; 43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 44 virtual void touchFigure() override; 45 45 virtual float getFuelState(); 46 46 protected: -
code/branches/cpp11_v2/src/modules/jump/JumpSpring.h
r10733 r10817 40 40 JumpSpring(Context* context); 41 41 virtual ~JumpSpring(); 42 virtual void tick(float dt) ;43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;42 virtual void tick(float dt) override; 43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 44 44 virtual void accelerateFigure(); 45 virtual void touchFigure() ;45 virtual void touchFigure() override; 46 46 protected: 47 47 float stretch_; -
code/branches/cpp11_v2/src/modules/mini4dgame/Mini4Dgame.h
r10230 r10817 65 65 virtual ~Mini4Dgame(); //!< Destructor. Cleans up, if initialized. 66 66 67 virtual void start(void) ; //!< Starts the Mini4Dgame minigame.68 virtual void end(void) ; ///!< Ends the Mini4Dgame minigame.67 virtual void start(void) override; //!< Starts the Mini4Dgame minigame. 68 virtual void end(void) override; ///!< Ends the Mini4Dgame minigame. 69 69 70 virtual void spawnPlayer(PlayerInfo* player) ; //!< Spawns the input player.70 virtual void spawnPlayer(PlayerInfo* player) override; //!< Spawns the input player. 71 71 72 72 void setGameboard(Mini4DgameBoard* board) … … 84 84 85 85 protected: 86 virtual void spawnPlayersIfRequested() ; //!< Spawns player.86 virtual void spawnPlayersIfRequested() override; //!< Spawns player. 87 87 88 88 -
code/branches/cpp11_v2/src/modules/mini4dgame/Mini4DgameBoard.h
r10624 r10817 74 74 //virtual ~Mini4DgameBoard(); 75 75 76 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;76 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 77 77 78 78 bool isValidMove(const Mini4DgamePosition& move); -
code/branches/cpp11_v2/src/modules/notifications/NotificationDispatcher.h
r9667 r10817 79 79 virtual ~NotificationDispatcher(); //!< Destructor. 80 80 81 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a NotificationDispatcher object through XML.82 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) ;81 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a NotificationDispatcher object through XML. 82 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override; 83 83 84 84 /** -
code/branches/cpp11_v2/src/modules/notifications/NotificationManager.h
r9667 r10817 120 120 virtual ~NotificationManager(); 121 121 122 virtual void preDestroy(void) ; // Is called before the object is destroyed.122 virtual void preDestroy(void) override; // Is called before the object is destroyed. 123 123 124 124 /** … … 128 128 static NotificationManager& getInstance() { return Singleton<NotificationManager>::getInstance(); } // tolua_export 129 129 130 virtual bool registerNotification(const std::string& message, const std::string& sender, notificationMessageType::Value type) ;131 virtual bool executeCommand(notificationCommand::Value command, const std::string& sender) ;130 virtual bool registerNotification(const std::string& message, const std::string& sender, notificationMessageType::Value type) override; 131 virtual bool executeCommand(notificationCommand::Value command, const std::string& sender) override; 132 132 133 133 bool registerNotification(Notification* notification); // Registers a Notification within the NotificationManager. -
code/branches/cpp11_v2/src/modules/notifications/NotificationQueue.h
r9667 r10817 97 97 virtual ~NotificationQueue(); 98 98 99 virtual void tick(float dt) ; // To update from time to time.100 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;101 102 virtual void changedName(void) ;99 virtual void tick(float dt) override; // To update from time to time. 100 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 101 102 virtual void changedName(void) override; 103 103 104 104 void update(void); // Updates the NotificationQueue. -
code/branches/cpp11_v2/src/modules/notifications/NotificationQueueCEGUI.h
r9667 r10817 73 73 virtual ~NotificationQueueCEGUI(); 74 74 75 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;75 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 76 76 77 virtual void changedName(void) ;77 virtual void changedName(void) override; 78 78 79 79 void destroy(bool noGraphics = false); // Destroys the NotificationQueue. … … 136 136 void registerVariables(); 137 137 138 virtual void create(void) ; // Creates the NotificationQueue in lua.138 virtual void create(void) override; // Creates the NotificationQueue in lua. 139 139 140 virtual void notificationPushed(Notification* notification) ; // Is called by the NotificationQueue when a Notification was pushed141 virtual void notificationPopped(void) ; // Is called by the NotificationQueue when a Notification was popped.142 virtual void notificationRemoved(unsigned int index) ; // Is called when a Notification was removed.140 virtual void notificationPushed(Notification* notification) override; // Is called by the NotificationQueue when a Notification was pushed 141 virtual void notificationPopped(void) override; // Is called by the NotificationQueue when a Notification was popped. 142 virtual void notificationRemoved(unsigned int index) override; // Is called when a Notification was removed. 143 143 144 virtual void clear(bool noGraphics = false) ; // Clears the NotificationQueue by removing all NotificationContainers.144 virtual void clear(bool noGraphics = false) override; // Clears the NotificationQueue by removing all NotificationContainers. 145 145 146 146 protected: -
code/branches/cpp11_v2/src/modules/objects/Attacher.h
r9667 r10817 51 51 virtual ~Attacher() {} 52 52 53 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;53 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 54 54 55 virtual void processEvent(Event& event) ;56 virtual void changedActivity() ;57 virtual void changedVisibility() ;55 virtual void processEvent(Event& event) override; 56 virtual void changedActivity() override; 57 virtual void changedVisibility() override; 58 58 59 59 void addObject(WorldEntity* object); … … 64 64 { return this->targetname_; } 65 65 66 void loadedNewXMLName(BaseObject* object) ;66 void loadedNewXMLName(BaseObject* object) override; 67 67 68 68 private: -
code/branches/cpp11_v2/src/modules/objects/ForceField.h
r10622 r10817 92 92 virtual ~ForceField(); 93 93 94 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Creates a ForceField object through XML.94 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Creates a ForceField object through XML. 95 95 void registerVariables(); //!< Registers the variables that should get synchronised over the network 96 virtual void tick(float dt) ; //!< A method that is called every tick.96 virtual void tick(float dt) override; //!< A method that is called every tick. 97 97 98 98 -
code/branches/cpp11_v2/src/modules/objects/Planet.h
r10624 r10817 52 52 virtual ~Planet(); 53 53 54 virtual void tick(float dt) ;54 virtual void tick(float dt) override; 55 55 56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 57 57 58 virtual void changedVisibility() ;58 virtual void changedVisibility() override; 59 59 60 60 inline void setMeshSource(const std::string& meshname) -
code/branches/cpp11_v2/src/modules/objects/Script.h
r9667 r10817 98 98 virtual ~Script(); 99 99 100 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a Script object through XML.101 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Creates a port that can be used to channel events and react to them.100 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a Script object through XML. 101 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Creates a port that can be used to channel events and react to them. 102 102 103 103 bool trigger(bool triggered, BaseObject* trigger); //!< Is called when an event comes in trough the event port. … … 168 168 { return this->forAll_; } 169 169 170 virtual void clientConnected(unsigned int clientId) ; //!< Callback that is called when a new client has connected.171 virtual void clientDisconnected(unsigned int clientid) {}170 virtual void clientConnected(unsigned int clientId) override; //!< Callback that is called when a new client has connected. 171 virtual void clientDisconnected(unsigned int clientid) override {} 172 172 173 173 private: -
code/branches/cpp11_v2/src/modules/objects/SpaceBoundaries.h
r10769 r10817 93 93 int getReaction(); 94 94 95 void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;95 void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 96 96 97 void tick(float dt) ;97 void tick(float dt) override; 98 98 99 99 private: -
code/branches/cpp11_v2/src/modules/objects/Turret.h
r10622 r10817 61 61 virtual ~Turret(); 62 62 63 virtual void rotatePitch(const Vector2& value) ;64 virtual void rotateYaw(const Vector2& value) ;65 virtual void rotateRoll(const Vector2& value) ;63 virtual void rotatePitch(const Vector2& value) override; 64 virtual void rotateYaw(const Vector2& value) override; 65 virtual void rotateRoll(const Vector2& value) override; 66 66 virtual float isInRange(const WorldEntity* target); 67 67 virtual void aimAtPosition(const Vector3 &position); 68 68 69 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;70 virtual void tick(float dt) ;69 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 70 virtual void tick(float dt) override; 71 71 72 72 /** @brief Sets the maximum distance the turret is allowed to shoot. @param radius The distance*/ -
code/branches/cpp11_v2/src/modules/overlays/FadeoutText.h
r9667 r10817 44 44 virtual ~FadeoutText() {} 45 45 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;47 virtual void tick(float dt) ;46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 47 virtual void tick(float dt) override; 48 48 49 49 inline void setDelay(float delay) … … 58 58 59 59 private: 60 virtual void changedColour() ;61 virtual void changedCaption() ;60 virtual void changedColour() override; 61 virtual void changedCaption() override; 62 62 63 63 void fadeout(); -
code/branches/cpp11_v2/src/modules/overlays/GUIOverlay.h
r9667 r10817 44 44 virtual ~GUIOverlay(); 45 45 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 47 47 48 48 void setGUIName(const std::string& name); 49 49 inline const std::string& getGUIName() const { return this->guiName_; } 50 50 51 virtual void changedVisibility() ;52 virtual void changedOwner() ;51 virtual void changedVisibility() override; 52 virtual void changedOwner() override; 53 53 54 54 private: -
code/branches/cpp11_v2/src/modules/overlays/OverlayText.h
r9667 r10817 52 52 virtual ~OverlayText(); 53 53 54 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;54 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 55 55 56 56 void setCaption(const std::string& caption); … … 76 76 77 77 protected: 78 virtual void sizeChanged() ;78 virtual void sizeChanged() override; 79 79 virtual void changedColour() {} 80 80 virtual void changedCaption() {} -
code/branches/cpp11_v2/src/modules/overlays/debugging/DebugFPSText.h
r9667 r10817 43 43 virtual ~DebugFPSText(); 44 44 45 virtual void tick(float dt) ;45 virtual void tick(float dt) override; 46 46 }; 47 47 } -
code/branches/cpp11_v2/src/modules/overlays/debugging/DebugPositionText.h
r9943 r10817 43 43 virtual ~DebugPositionText(); 44 44 45 virtual void tick(float dt) ;45 virtual void tick(float dt) override; 46 46 }; 47 47 } -
code/branches/cpp11_v2/src/modules/overlays/debugging/DebugRTRText.h
r9667 r10817 43 43 virtual ~DebugRTRText(); 44 44 45 virtual void tick(float dt) ;45 virtual void tick(float dt) override; 46 46 }; 47 47 } -
code/branches/cpp11_v2/src/modules/overlays/hud/AnnounceMessage.h
r9667 r10817 43 43 virtual ~AnnounceMessage() {} 44 44 45 virtual void changedOwner() ;45 virtual void changedOwner() override; 46 46 47 void announcemessage(const GametypeInfo* gtinfo, const std::string& message) ;47 void announcemessage(const GametypeInfo* gtinfo, const std::string& message) override; 48 48 49 49 private: -
code/branches/cpp11_v2/src/modules/overlays/hud/ChatOverlay.h
r9667 r10817 49 49 50 50 protected: 51 virtual void incomingChat(const std::string& message, const std::string& name) ;51 virtual void incomingChat(const std::string& message, const std::string& name) override; 52 52 53 53 std::list<Ogre::DisplayString> messages_; -
code/branches/cpp11_v2/src/modules/overlays/hud/CountDown.h
r9943 r10817 44 44 virtual ~CountDown(); 45 45 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;47 virtual void changedOwner() ;48 virtual void tick(float dt) ;46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 47 virtual void changedOwner() override; 48 virtual void tick(float dt) override; 49 49 50 50 inline void setCounter(float value) -
code/branches/cpp11_v2/src/modules/overlays/hud/DeathMessage.h
r9667 r10817 43 43 virtual ~DeathMessage() {} 44 44 45 virtual void changedOwner() ;45 virtual void changedOwner() override; 46 46 47 void deathmessage(const GametypeInfo* gtinfo, const std::string& message) ;47 void deathmessage(const GametypeInfo* gtinfo, const std::string& message) override; 48 48 49 49 private: -
code/branches/cpp11_v2/src/modules/overlays/hud/GametypeFadingMessage.h
r9667 r10817 43 43 virtual ~GametypeFadingMessage(); 44 44 45 virtual void changedOwner() ;45 virtual void changedOwner() override; 46 46 47 void fadingmessage(const GametypeInfo* gtinfo, const std::string& message) ;47 void fadingmessage(const GametypeInfo* gtinfo, const std::string& message) override; 48 48 49 49 private: -
code/branches/cpp11_v2/src/modules/overlays/hud/GametypeStaticMessage.h
r9667 r10817 46 46 virtual ~GametypeStaticMessage(); 47 47 48 virtual void changedOwner() ;48 virtual void changedOwner() override; 49 49 50 void staticmessage(const GametypeInfo* gtinfo, const std::string& message, const ColourValue& colour) ;50 void staticmessage(const GametypeInfo* gtinfo, const std::string& message, const ColourValue& colour) override; 51 51 52 52 private: -
code/branches/cpp11_v2/src/modules/overlays/hud/HUDBar.h
r9667 r10817 51 51 virtual ~BarColour() { } 52 52 53 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;53 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 54 54 55 55 void setColour(const ColourValue& colour) { this->colour_ = colour; } … … 71 71 virtual ~HUDBar(); 72 72 73 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;73 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 74 74 75 75 void clearColours(); -
code/branches/cpp11_v2/src/modules/overlays/hud/HUDBoostBar.h
r9667 r10817 43 43 virtual ~HUDBoostBar(); 44 44 45 virtual void tick(float dt) ;46 virtual void changedOwner() ;45 virtual void tick(float dt) override; 46 virtual void changedOwner() override; 47 47 48 48 private: -
code/branches/cpp11_v2/src/modules/overlays/hud/HUDEnemyHealthBar.cc
r10768 r10817 30 30 31 31 #include "core/config/ConfigValueIncludes.h" 32 #include "core/CoreIncludes.h" 32 33 #include "worldentities/pawns/Pawn.h" 33 34 -
code/branches/cpp11_v2/src/modules/overlays/hud/HUDEnemyHealthBar.h
r9667 r10817 41 41 42 42 void setConfigValues(); 43 virtual void tick(float dt) ;43 virtual void tick(float dt) override; 44 44 45 void changedOwner() ;45 void changedOwner() override; 46 46 47 47 private: -
code/branches/cpp11_v2/src/modules/overlays/hud/HUDHealthBar.h
r10624 r10817 45 45 virtual ~HUDHealthBar(); 46 46 47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;48 virtual void tick(float dt) ;49 virtual void changedOwner() ;50 virtual void changedOverlayGroup() ;51 virtual void changedVisibility() ;52 virtual void changedName() ;47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 48 virtual void tick(float dt) override; 49 virtual void changedOwner() override; 50 virtual void changedOverlayGroup() override; 51 virtual void changedVisibility() override; 52 virtual void changedName() override; 53 53 54 54 inline void setTextFont(const std::string& font) -
code/branches/cpp11_v2/src/modules/overlays/hud/HUDNavigation.h
r10769 r10817 51 51 void setConfigValues(); 52 52 53 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;54 virtual void tick(float dt) ;53 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 54 virtual void tick(float dt) override; 55 55 56 56 // RadarListener interface 57 virtual void addObject(RadarViewable* object) ;58 virtual void removeObject(RadarViewable* viewable) ;59 virtual void objectChanged(RadarViewable* viewable) ;57 virtual void addObject(RadarViewable* object) override; 58 virtual void removeObject(RadarViewable* viewable) override; 59 virtual void objectChanged(RadarViewable* viewable) override; 60 60 61 virtual void changedOwner() ;62 virtual void sizeChanged() ;63 virtual void angleChanged() { }64 virtual void positionChanged() { }65 virtual void radarTick(float dt) {}61 virtual void changedOwner() override; 62 virtual void sizeChanged() override; 63 virtual void angleChanged() override { } 64 virtual void positionChanged() override { } 65 virtual void radarTick(float dt) override {} 66 66 67 inline float getRadarSensitivity() const 67 inline float getRadarSensitivity() const override 68 68 { return 1.0f; } 69 69 -
code/branches/cpp11_v2/src/modules/overlays/hud/HUDRadar.h
r9945 r10817 50 50 virtual ~HUDRadar(); 51 51 52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;53 virtual void changedOwner() ;52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 53 virtual void changedOwner() override; 54 54 void setConfigValues(); 55 55 … … 80 80 void set3DMaterialBack(std::string material3DBack) { this->material3DBack_ = material3DBack; } 81 81 82 float getRadarSensitivity() const { return this->sensitivity_; }82 float getRadarSensitivity() const override { return this->sensitivity_; } 83 83 // used also by RadarListener interface! 84 84 void setRadarSensitivity(float sensitivity) { this->sensitivity_ = sensitivity; } … … 89 89 90 90 // RadarListener interface 91 virtual void addObject(RadarViewable* viewable) ;92 virtual void removeObject(RadarViewable* viewable) ;93 virtual void objectChanged( RadarViewable* rv ) ;94 void radarTick(float dt) ;91 virtual void addObject(RadarViewable* viewable) override; 92 virtual void removeObject(RadarViewable* viewable) override; 93 virtual void objectChanged( RadarViewable* rv ) override; 94 void radarTick(float dt) override; 95 95 bool showObject( RadarViewable* rv ); //!< Do not display an object on radar, if showObject(.) is false. 96 96 -
code/branches/cpp11_v2/src/modules/overlays/hud/HUDSpeedBar.h
r9667 r10817 44 44 virtual ~HUDSpeedBar(); 45 45 46 virtual void tick(float dt) ;47 virtual void changedOwner() ;46 virtual void tick(float dt) override; 47 virtual void changedOwner() override; 48 48 49 49 private: -
code/branches/cpp11_v2/src/modules/overlays/hud/HUDTimer.h
r9667 r10817 43 43 virtual ~HUDTimer(); 44 44 45 virtual void tick(float dt) ;45 virtual void tick(float dt) override; 46 46 47 virtual void changedOwner() ;47 virtual void changedOwner() override; 48 48 49 49 private: -
code/branches/cpp11_v2/src/modules/overlays/hud/KillMessage.h
r9667 r10817 43 43 virtual ~KillMessage() {} 44 44 45 virtual void changedOwner() ;45 virtual void changedOwner() override; 46 46 47 void killmessage(const GametypeInfo* gtinfo, const std::string& message) ;47 void killmessage(const GametypeInfo* gtinfo, const std::string& message) override; 48 48 49 49 private: -
code/branches/cpp11_v2/src/modules/overlays/hud/LastManStandingInfos.h
r9667 r10817 43 43 virtual ~LastManStandingInfos(); 44 44 45 virtual void tick(float dt) ;46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;47 virtual void changedOwner() ;45 virtual void tick(float dt) override; 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 47 virtual void changedOwner() override; 48 48 49 49 inline void setShowLives(bool value) -
code/branches/cpp11_v2/src/modules/overlays/hud/LastTeamStandingInfos.h
r9667 r10817 43 43 virtual ~LastTeamStandingInfos(); 44 44 45 virtual void tick(float dt) ;46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;47 virtual void changedOwner() ;45 virtual void tick(float dt) override; 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 47 virtual void changedOwner() override; 48 48 49 49 inline void setShowLives(bool value) -
code/branches/cpp11_v2/src/modules/overlays/hud/PauseNotice.h
r9667 r10817 42 42 PauseNotice(Context* context); 43 43 44 virtual void changedOwner() ;44 virtual void changedOwner() override; 45 45 46 46 protected: 47 virtual void changedTimeFactor(float factor_new, float factor_old) ;47 virtual void changedTimeFactor(float factor_new, float factor_old) override; 48 48 49 49 private: -
code/branches/cpp11_v2/src/modules/overlays/hud/TeamBaseMatchScore.h
r9667 r10817 43 43 virtual ~TeamBaseMatchScore(); 44 44 45 virtual void tick(float dt) ;46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;47 virtual void changedOwner() ;45 virtual void tick(float dt) override; 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 47 virtual void changedOwner() override; 48 48 49 49 inline void setShowBases(bool value) -
code/branches/cpp11_v2/src/modules/overlays/stats/Scoreboard.h
r9667 r10817 44 44 virtual ~Scoreboard(); 45 45 46 virtual void tick(float dt) ;46 virtual void tick(float dt) override; 47 47 48 48 inline void setCreateLines(CreateLines* cl) … … 51 51 { return this->createlines_; } 52 52 53 virtual void changedVisibility() ;53 virtual void changedVisibility() override; 54 54 55 55 private: // functions -
code/branches/cpp11_v2/src/modules/overlays/stats/Stats.h
r9667 r10817 46 46 void setConfigValues(); 47 47 48 virtual void tick(float dt) ;48 virtual void tick(float dt) override; 49 49 50 50 private: // variables -
code/branches/cpp11_v2/src/modules/pickup/CollectiblePickup.h
r10765 r10817 61 61 virtual ~CollectiblePickup(); //! Destructor. 62 62 63 virtual void changedUsed(void) ; //!< Is called when the pickup has transited from used to unused or the other way around.64 virtual void changedPickedUp(void) ; //!< Is called when the pickup has transited from picked up to dropped or the other way around.63 virtual void changedUsed(void) override; //!< Is called when the pickup has transited from used to unused or the other way around. 64 virtual void changedPickedUp(void) override; //!< Is called when the pickup has transited from picked up to dropped or the other way around. 65 65 66 66 /** -
code/branches/cpp11_v2/src/modules/pickup/Pickup.h
r9667 r10817 103 103 virtual ~Pickup(); //!< Destructor. 104 104 105 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;105 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 106 106 107 virtual const std::string& getRepresentationName() const 107 virtual const std::string& getRepresentationName() const override 108 108 { return this->representationName_; } 109 109 … … 149 149 { return this->getDurationType() == pickupDurationType::continuous; } 150 150 151 virtual void changedPickedUp(void) ; //!< Should be called when the pickup has transited from picked up to dropped or the other way around.151 virtual void changedPickedUp(void) override; //!< Should be called when the pickup has transited from picked up to dropped or the other way around. 152 152 153 153 protected: 154 virtual bool createSpawner(void) ; //!< Facilitates the creation of a PickupSpawner upon dropping of the Pickupable.154 virtual bool createSpawner(void) override; //!< Facilitates the creation of a PickupSpawner upon dropping of the Pickupable. 155 155 156 156 /** -
code/branches/cpp11_v2/src/modules/pickup/PickupCollection.h
r9667 r10817 73 73 virtual ~PickupCollection(); //!< Destructor. 74 74 75 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Creates an instance of this Class through XML.75 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Creates an instance of this Class through XML. 76 76 77 virtual void changedUsed(void) ; //!< Is called when the pickup has transited from used to unused or the other way around.78 virtual void changedCarrier(void) ; //!< Is called when the pickup has changed its PickupCarrier.79 virtual void changedPickedUp(void) ; //!< Is called when the pickup has transited from picked up to dropped or the other way around.77 virtual void changedUsed(void) override; //!< Is called when the pickup has transited from used to unused or the other way around. 78 virtual void changedCarrier(void) override; //!< Is called when the pickup has changed its PickupCarrier. 79 virtual void changedPickedUp(void) override; //!< Is called when the pickup has transited from picked up to dropped or the other way around. 80 80 81 virtual bool isTarget(const PickupCarrier* carrier) const ; //!< Get whether a given class, represented by the input Identifier, is a target of this PickupCollection.81 virtual bool isTarget(const PickupCarrier* carrier) const override; //!< Get whether a given class, represented by the input Identifier, is a target of this PickupCollection. 82 82 83 83 inline void setRepresentationName(const std::string& name) 84 84 { this->representationName_ = name; } 85 virtual const std::string& getRepresentationName() const 85 virtual const std::string& getRepresentationName() const override 86 86 { return this->representationName_; } 87 87 … … 98 98 99 99 protected: 100 virtual bool createSpawner(void) ; //!< Facilitates the creation of a PickupSpawner upon dropping of the Pickupable.100 virtual bool createSpawner(void) override; //!< Facilitates the creation of a PickupSpawner upon dropping of the Pickupable. 101 101 102 102 private: -
code/branches/cpp11_v2/src/modules/pickup/PickupManager.h
r10769 r10817 117 117 PickupRepresentation* getRepresentation(const std::string& name); // tolua_export 118 118 119 virtual void pickupChangedUsed(Pickupable* pickup, bool used) ; //!< Is called by the PickupListener to notify the PickupManager, that the input Pickupable has transited to the input used state.119 virtual void pickupChangedUsed(Pickupable* pickup, bool used) override; //!< Is called by the PickupListener to notify the PickupManager, that the input Pickupable has transited to the input used state. 120 120 static void pickupChangedUsedNetwork(uint32_t pickup, bool inUse, bool usable, bool unusable); //!< Helper method to react to the change in the used status of a Pickupable. 121 virtual void pickupChangedPickedUp(Pickupable* pickup, bool pickedUp) ; //!< Is called by the PickupListener to notify the PickupManager, that the input Pickupable has transited to the input pickedUp state.121 virtual void pickupChangedPickedUp(Pickupable* pickup, bool pickedUp) override; //!< Is called by the PickupListener to notify the PickupManager, that the input Pickupable has transited to the input pickedUp state. 122 122 static void pickupChangedPickedUpNetwork(uint32_t pickup, bool usable, uint32_t representationObjectId, const std::string& representationName, bool pickedUp); //!< Helper method to react to the change in the pickedUp status of a Pickupable. 123 123 -
code/branches/cpp11_v2/src/modules/pickup/PickupRepresentation.h
r10765 r10817 98 98 virtual ~PickupRepresentation(); //!< Destructor. 99 99 100 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a PickupRepresentation object through XML.100 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a PickupRepresentation object through XML. 101 101 102 102 /** … … 129 129 inline const std::string& getInventoryRepresentation(void) const { return this->inventoryRepresentation_; } // tolua_export 130 130 131 virtual void changedName() ;131 virtual void changedName() override; 132 132 133 133 StaticEntity* createSpawnerRepresentation(PickupSpawner* spawner); //!< Create a spawnerRepresentation for a specific PickupSpawner. -
code/branches/cpp11_v2/src/modules/pickup/PickupSpawner.h
r9667 r10817 82 82 static PickupSpawner* createDroppedPickup(Context* context, Pickupable* pickup, PickupCarrier* carrier, float triggerDistance = 10.0); 83 83 84 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a PickupSpawner through XML.85 virtual void tick(float dt) ; //!< Tick, checks if any Pawn is close enough to trigger.84 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a PickupSpawner through XML. 85 virtual void tick(float dt) override; //!< Tick, checks if any Pawn is close enough to trigger. 86 86 87 87 /** -
code/branches/cpp11_v2/src/modules/pong/Pong.h
r9667 r10817 68 68 virtual ~Pong(); //!< Destructor. Cleans up, if initialized. 69 69 70 virtual void start() ; //!< Starts the Pong minigame.71 virtual void end() ; ///!< Ends the Pong minigame.70 virtual void start() override; //!< Starts the Pong minigame. 71 virtual void end() override; ///!< Ends the Pong minigame. 72 72 73 virtual void spawnPlayer(PlayerInfo* player) ; //!< Spawns the input player.73 virtual void spawnPlayer(PlayerInfo* player) override; //!< Spawns the input player. 74 74 75 virtual void playerScored(PlayerInfo* player, int score = 1) ; //!< Is called when the player scored.75 virtual void playerScored(PlayerInfo* player, int score = 1) override; //!< Is called when the player scored. 76 76 77 77 /** … … 87 87 88 88 protected: 89 virtual void spawnPlayersIfRequested() ; //!< Spawns players, and fills the rest up with bots.89 virtual void spawnPlayersIfRequested() override; //!< Spawns players, and fills the rest up with bots. 90 90 91 91 void startBall(); //!< Starts the ball with some default speed. -
code/branches/cpp11_v2/src/modules/pong/PongAI.h
r10769 r10817 66 66 void setConfigValues(); 67 67 68 virtual void tick(float dt) ; //!< Implements the behavior of the PongAI (i.e. its intelligence).68 virtual void tick(float dt) override; //!< Implements the behavior of the PongAI (i.e. its intelligence). 69 69 70 70 /** -
code/branches/cpp11_v2/src/modules/pong/PongBall.h
r9939 r10817 63 63 virtual ~PongBall(); 64 64 65 virtual void tick(float dt) ;65 virtual void tick(float dt) override; 66 66 67 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;67 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 68 68 69 69 /** -
code/branches/cpp11_v2/src/modules/pong/PongBat.h
r9667 r10817 60 60 virtual ~PongBat() {} 61 61 62 virtual void tick(float dt) ;62 virtual void tick(float dt) override; 63 63 64 virtual void moveFrontBack(const Vector2& value) ; //!< Overloaded the function to steer the bat up and down.65 virtual void moveRightLeft(const Vector2& value) ; //!< Overloaded the function to steer the bat up and down.64 virtual void moveFrontBack(const Vector2& value) override; //!< Overloaded the function to steer the bat up and down. 65 virtual void moveRightLeft(const Vector2& value) override; //!< Overloaded the function to steer the bat up and down. 66 66 67 virtual void changedPlayer() ; //!< Is called when the player changed.67 virtual void changedPlayer() override; //!< Is called when the player changed. 68 68 69 69 /** -
code/branches/cpp11_v2/src/modules/pong/PongCenterpoint.h
r10624 r10817 124 124 virtual ~PongCenterpoint() {} 125 125 126 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method to create a PongCenterpoint through XML.126 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method to create a PongCenterpoint through XML. 127 127 128 128 /** -
code/branches/cpp11_v2/src/modules/pong/PongScore.h
r9939 r10817 60 60 virtual ~PongScore(); 61 61 62 virtual void tick(float dt) ; //!< Creates and sets the caption to be displayed by the PongScore.63 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;64 virtual void changedOwner() ; //!< Is called when the owner changes.62 virtual void tick(float dt) override; //!< Creates and sets the caption to be displayed by the PongScore. 63 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 64 virtual void changedOwner() override; //!< Is called when the owner changes. 65 65 66 66 /** -
code/branches/cpp11_v2/src/modules/portals/PortalEndPoint.h
r9667 r10817 63 63 virtual ~PortalEndPoint(); 64 64 65 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;66 virtual void changedActivity(void) ;65 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 66 virtual void changedActivity(void) override; 67 67 68 68 inline void setTarget(const std::string & target) //!< add types which are allowed to activate the PortalEndPoint 69 69 { this->trigger_->addTarget(target); } 70 70 71 void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) ;71 void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override; 72 72 static std::map<unsigned int, PortalEndPoint *> idMap_s; //!< Maps the id of each PortalEndPoint to a pointer to that PortalEndPoint 73 73 inline void setReenterDelay(unsigned int seconds) -
code/branches/cpp11_v2/src/modules/portals/PortalLink.h
r9667 r10817 56 56 PortalLink(Context* context); 57 57 virtual ~PortalLink(); 58 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;58 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 59 59 60 60 inline void setFromID(unsigned int from) //!< set the ID of the PortalEndPoint which should act as the entrance of this link -
code/branches/cpp11_v2/src/modules/questsystem/GlobalQuest.h
r9667 r10817 93 93 virtual ~GlobalQuest(); 94 94 95 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a GlobalQuest object through XML.95 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a GlobalQuest object through XML. 96 96 97 virtual bool fail(PlayerInfo* player) ; //!< Fails the Quest.98 virtual bool complete(PlayerInfo* player) ; //!< Completes the Quest.97 virtual bool fail(PlayerInfo* player) override; //!< Fails the Quest. 98 virtual bool complete(PlayerInfo* player) override; //!< Completes the Quest. 99 99 100 100 protected: 101 virtual bool isStartable(const PlayerInfo* player) const ; //!< Checks whether the Quest can be started.102 virtual bool isFailable(const PlayerInfo* player) const ; //!< Checks whether the Quest can be failed.103 virtual bool isCompletable(const PlayerInfo* player) const ; //!< Checks whether the Quest can be completed.101 virtual bool isStartable(const PlayerInfo* player) const override; //!< Checks whether the Quest can be started. 102 virtual bool isFailable(const PlayerInfo* player) const override; //!< Checks whether the Quest can be failed. 103 virtual bool isCompletable(const PlayerInfo* player) const override; //!< Checks whether the Quest can be completed. 104 104 105 virtual QuestStatus::Value getStatus(const PlayerInfo* player) const ; //!< Returns the status of the Quest for a specific player.105 virtual QuestStatus::Value getStatus(const PlayerInfo* player) const override; //!< Returns the status of the Quest for a specific player. 106 106 107 virtual bool setStatus(PlayerInfo* player, const QuestStatus::Value & status) ; //!< Sets the status for a specific player.107 virtual bool setStatus(PlayerInfo* player, const QuestStatus::Value & status) override; //!< Sets the status for a specific player. 108 108 109 109 private: -
code/branches/cpp11_v2/src/modules/questsystem/LocalQuest.h
r9667 r10817 87 87 virtual ~LocalQuest(); 88 88 89 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a LocalQuest object through XML.89 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a LocalQuest object through XML. 90 90 91 virtual bool fail(PlayerInfo* player) ; //!< Fails the Quest.92 virtual bool complete(PlayerInfo* player) ; //!< Completes the Quest.91 virtual bool fail(PlayerInfo* player) override; //!< Fails the Quest. 92 virtual bool complete(PlayerInfo* player) override; //!< Completes the Quest. 93 93 94 94 protected: 95 virtual bool isStartable(const PlayerInfo* player) const ; //!< Checks whether the Quest can be started.96 virtual bool isFailable(const PlayerInfo* player) const ; //!< Checks whether the Quest can be failed.97 virtual bool isCompletable(const PlayerInfo* player) const ; //!< Checks whether the Quest can be completed.95 virtual bool isStartable(const PlayerInfo* player) const override; //!< Checks whether the Quest can be started. 96 virtual bool isFailable(const PlayerInfo* player) const override; //!< Checks whether the Quest can be failed. 97 virtual bool isCompletable(const PlayerInfo* player) const override; //!< Checks whether the Quest can be completed. 98 98 99 virtual QuestStatus::Value getStatus(const PlayerInfo* player) const ; //!< Returns the status of the Quest for a specific player.100 virtual bool setStatus(PlayerInfo* player, const QuestStatus::Value & status) ; //!< Sets the status for a specific player.99 virtual QuestStatus::Value getStatus(const PlayerInfo* player) const override; //!< Returns the status of the Quest for a specific player. 100 virtual bool setStatus(PlayerInfo* player, const QuestStatus::Value & status) override; //!< Sets the status for a specific player. 101 101 102 102 private: -
code/branches/cpp11_v2/src/modules/questsystem/Quest.h
r9667 r10817 85 85 virtual ~Quest(); 86 86 87 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a Quest object through XML.87 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a Quest object through XML. 88 88 89 89 /** -
code/branches/cpp11_v2/src/modules/questsystem/QuestDescription.h
r9667 r10817 67 67 virtual ~QuestDescription(); 68 68 69 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a QuestDescription object through XML.69 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a QuestDescription object through XML. 70 70 71 71 // tolua_begin -
code/branches/cpp11_v2/src/modules/questsystem/QuestEffectBeacon.h
r9667 r10817 96 96 virtual ~QuestEffectBeacon(); 97 97 98 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a QuestEffectBeacon object through XML.99 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) ;98 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a QuestEffectBeacon object through XML. 99 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override; 100 100 101 101 bool execute(bool bTriggered, BaseObject* trigger); //!< Executes the QuestEffects of the QuestEffectBeacon. -
code/branches/cpp11_v2/src/modules/questsystem/QuestHint.h
r9667 r10817 85 85 virtual ~QuestHint(); 86 86 87 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a QuestHint object through XML.87 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a QuestHint object through XML. 88 88 89 89 bool isActive(const PlayerInfo* player) const; //!< Returns true if the QuestHint is active for the input player. -
code/branches/cpp11_v2/src/modules/questsystem/QuestItem.h
r9667 r10817 63 63 virtual ~QuestItem(); 64 64 65 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a QuestItem object through XML.65 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a QuestItem object through XML. 66 66 67 67 /** -
code/branches/cpp11_v2/src/modules/questsystem/QuestListener.h
r9667 r10817 90 90 virtual ~QuestListener(); 91 91 92 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a QuestListener object through XML.92 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a QuestListener object through XML. 93 93 94 94 static void advertiseStatusChange(std::list<QuestListener*> & listeners, const std::string & status); //!< Makes all QuestListener in the list aware that a certain status change has occured. -
code/branches/cpp11_v2/src/modules/questsystem/effects/AddQuest.h
r9667 r10817 62 62 virtual ~AddQuest(); 63 63 64 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a AddQuest object through XML.64 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a AddQuest object through XML. 65 65 66 virtual bool invoke(PlayerInfo* player) ; //!< Invokes the QuestEffect.66 virtual bool invoke(PlayerInfo* player) override; //!< Invokes the QuestEffect. 67 67 68 68 }; -
code/branches/cpp11_v2/src/modules/questsystem/effects/AddQuestHint.h
r9667 r10817 64 64 virtual ~AddQuestHint(); 65 65 66 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a AddQuestHint object through XML.66 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a AddQuestHint object through XML. 67 67 68 virtual bool invoke(PlayerInfo* player) ; //!< Invokes the QuestEffect.68 virtual bool invoke(PlayerInfo* player) override; //!< Invokes the QuestEffect. 69 69 70 70 private: -
code/branches/cpp11_v2/src/modules/questsystem/effects/AddReward.h
r9667 r10817 68 68 virtual ~AddReward(); 69 69 70 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a AddReward object through XML.70 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a AddReward object through XML. 71 71 72 virtual bool invoke(PlayerInfo* player) ; //!< Invokes the QuestEffect.72 virtual bool invoke(PlayerInfo* player) override; //!< Invokes the QuestEffect. 73 73 74 74 private: -
code/branches/cpp11_v2/src/modules/questsystem/effects/ChangeQuestStatus.h
r9667 r10817 59 59 virtual ~ChangeQuestStatus(); 60 60 61 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a ChangeQuestStatus object through XML.61 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a ChangeQuestStatus object through XML. 62 62 63 63 virtual bool invoke(PlayerInfo* player) = 0; //!< Invokes the QuestEffect. -
code/branches/cpp11_v2/src/modules/questsystem/effects/CompleteQuest.h
r9667 r10817 62 62 virtual ~CompleteQuest(); 63 63 64 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a CompleteQuest object through XML.64 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a CompleteQuest object through XML. 65 65 66 virtual bool invoke(PlayerInfo* player) ; //!< Invokes the QuestEffect.66 virtual bool invoke(PlayerInfo* player) override; //!< Invokes the QuestEffect. 67 67 68 68 }; -
code/branches/cpp11_v2/src/modules/questsystem/effects/FailQuest.h
r9667 r10817 62 62 virtual ~FailQuest(); 63 63 64 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a FailQuest object through XML.64 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a FailQuest object through XML. 65 65 66 virtual bool invoke(PlayerInfo* player) ; //!< Invokes the QuestEffect.66 virtual bool invoke(PlayerInfo* player) override; //!< Invokes the QuestEffect. 67 67 68 68 }; -
code/branches/cpp11_v2/src/modules/tetris/Tetris.h
r10769 r10817 58 58 virtual ~Tetris(); //!< Destructor. Cleans up, if initialized. 59 59 60 virtual void start(void) ; //!< Starts the Tetris minigame.61 virtual void end(void) ; ///!< Ends the Tetris minigame.60 virtual void start(void) override; //!< Starts the Tetris minigame. 61 virtual void end(void) override; ///!< Ends the Tetris minigame. 62 62 63 virtual void tick(float dt) ;63 virtual void tick(float dt) override; 64 64 65 virtual void spawnPlayer(PlayerInfo* player) ; //!< Spawns the input player.66 virtual bool playerLeft(PlayerInfo* player) ;65 virtual void spawnPlayer(PlayerInfo* player) override; //!< Spawns the input player. 66 virtual bool playerLeft(PlayerInfo* player) override; 67 67 68 68 void setCenterpoint(TetrisCenterpoint* center); … … 77 77 78 78 protected: 79 virtual void spawnPlayersIfRequested() ; //!< Spawns player.79 virtual void spawnPlayersIfRequested() override; //!< Spawns player. 80 80 81 81 -
code/branches/cpp11_v2/src/modules/tetris/TetrisBrick.h
r10262 r10817 57 57 virtual ~TetrisBrick() {} 58 58 59 virtual void moveFrontBack(const Vector2& value) ; //!< Overloaded the function to steer the bat up and down.60 virtual void moveRightLeft(const Vector2& value) ; //!< Overloaded the function to steer the bat up and down.61 virtual void changedPlayer() ; //!< Is called when the player changed.59 virtual void moveFrontBack(const Vector2& value) override; //!< Overloaded the function to steer the bat up and down. 60 virtual void moveRightLeft(const Vector2& value) override; //!< Overloaded the function to steer the bat up and down. 61 virtual void changedPlayer() override; //!< Is called when the player changed. 62 62 63 63 bool isValidMove(const Vector3& position, bool isRotation); -
code/branches/cpp11_v2/src/modules/tetris/TetrisCenterpoint.h
r10624 r10817 62 62 virtual ~TetrisCenterpoint() {} 63 63 64 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method to create a TetrisCenterpoint through XML.64 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method to create a TetrisCenterpoint through XML. 65 65 66 66 /** -
code/branches/cpp11_v2/src/modules/tetris/TetrisScore.h
r10262 r10817 60 60 virtual ~TetrisScore(); 61 61 62 virtual void tick(float dt) ; //!< Creates and sets the caption to be displayed by the TetrisScore.63 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;64 virtual void changedOwner() ; //!< Is called when the owner changes.62 virtual void tick(float dt) override; //!< Creates and sets the caption to be displayed by the TetrisScore. 63 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 64 virtual void changedOwner() override; //!< Is called when the owner changes. 65 65 66 66 private: -
code/branches/cpp11_v2/src/modules/towerdefense/TowerDefense.h
r10769 r10817 53 53 virtual ~TowerDefense(); 54 54 void addTowerDefenseEnemy(int templatenr); 55 virtual void start() ; //<! The function is called when the gametype starts56 virtual void end() ;57 virtual void tick(float dt) ;58 virtual void spawnPlayer(PlayerInfo* player) ;55 virtual void start() override; //<! The function is called when the gametype starts 56 virtual void end() override; 57 virtual void tick(float dt) override; 58 virtual void spawnPlayer(PlayerInfo* player) override; 59 59 PlayerInfo* getPlayer(void) const; 60 60 int getCredit(){ return this->credit_; } -
code/branches/cpp11_v2/src/modules/towerdefense/TowerDefenseCenterpoint.h
r10629 r10817 52 52 virtual ~TowerDefenseCenterpoint() {} 53 53 54 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;54 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 55 55 56 56 /** -
code/branches/cpp11_v2/src/modules/towerdefense/TowerDefenseEnemy.h
r10629 r10817 37 37 //health gibt es unter: health_ 38 38 39 virtual void tick(float dt) ;39 virtual void tick(float dt) override; 40 40 virtual void damage(float damage, float healthdamage, float shielddamage, Pawn* originator); 41 41 -
code/branches/cpp11_v2/src/modules/towerdefense/TowerDefenseField.h
r10629 r10817 62 62 TowerDefenseField(Context* context); 63 63 virtual ~TowerDefenseField() {} 64 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;64 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 65 65 const bool isFree() const 66 66 { return type_==FREE; } -
code/branches/cpp11_v2/src/modules/towerdefense/TowerDefenseHUDController.h
r10258 r10817 53 53 54 54 55 virtual void tick(float dt) ;56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;57 virtual void changedOwner() ;55 virtual void tick(float dt) override; 56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 57 virtual void changedOwner() override; 58 58 void setShowlives(bool temp) 59 59 { this->showlives = temp; } -
code/branches/cpp11_v2/src/modules/towerdefense/TowerDefenseSelecter.h
r10629 r10817 41 41 TowerDefenseSelecter(Context* context); //!< Constructor. Registers and initializes the object. 42 42 virtual ~TowerDefenseSelecter(); 43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;44 virtual void tick(float dt) ;45 virtual void moveFrontBack(const Vector2& value) ; //!< Overloaded the function to steer the bat up and down.46 virtual void moveRightLeft(const Vector2& value) ; //!< Overloaded the function to steer the bat up and down.47 virtual void rotateYaw(const Vector2& value) ;48 virtual void rotatePitch(const Vector2& value) ;49 virtual void rotateRoll(const Vector2& value) ;43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 44 virtual void tick(float dt) override; 45 virtual void moveFrontBack(const Vector2& value) override; //!< Overloaded the function to steer the bat up and down. 46 virtual void moveRightLeft(const Vector2& value) override; //!< Overloaded the function to steer the bat up and down. 47 virtual void rotateYaw(const Vector2& value) override; 48 virtual void rotatePitch(const Vector2& value) override; 49 virtual void rotateRoll(const Vector2& value) override; 50 50 void fire(unsigned int firemode); 51 virtual void fired(unsigned int firemode) ;52 virtual void boost(bool bBoost) ;51 virtual void fired(unsigned int firemode) override; 52 virtual void boost(bool bBoost) override; 53 53 virtual void setSelectedPosition(TDCoordinate* newPos); 54 54 virtual void setSelectedPosition(int x, int y); -
code/branches/cpp11_v2/src/modules/weapons/IceGunFreezer.h
r10629 r10817 55 55 IceGunFreezer(Context* context); 56 56 virtual ~IceGunFreezer(); 57 virtual void tick(float dt) ;57 virtual void tick(float dt) override; 58 58 virtual void startFreezing(); 59 59 virtual void stopFreezing(); -
code/branches/cpp11_v2/src/modules/weapons/RocketController.cc
r10258 r10817 38 38 #include "projectiles/SimpleRocket.h" 39 39 #include "weaponmodes/SimpleRocketFire.h" 40 #include "core/CoreIncludes.h" 40 41 41 42 namespace orxonox -
code/branches/cpp11_v2/src/modules/weapons/RocketController.h
r9667 r10817 55 55 virtual ~RocketController(); 56 56 57 virtual void tick(float dt) ;57 virtual void tick(float dt) override; 58 58 /** 59 59 @brief Get the rocket that is controlled by this controller. -
code/branches/cpp11_v2/src/modules/weapons/projectiles/BillboardProjectile.h
r10629 r10817 61 61 virtual void setMaterial(const std::string& material); 62 62 virtual const std::string& getMaterial(); 63 virtual void changedVisibility() ;63 virtual void changedVisibility() override; 64 64 65 65 private: -
code/branches/cpp11_v2/src/modules/weapons/projectiles/GravityBomb.h
r10622 r10817 41 41 GravityBomb(Context* context); 42 42 virtual ~GravityBomb(); 43 virtual void tick(float dt) ;43 virtual void tick(float dt) override; 44 44 45 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) ;45 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) override; 46 46 void detonate(); 47 47 private: -
code/branches/cpp11_v2/src/modules/weapons/projectiles/GravityBombField.h
r10622 r10817 39 39 GravityBombField(Context* context); 40 40 virtual ~GravityBombField(); 41 virtual void tick(float dt) ;41 virtual void tick(float dt) override; 42 42 virtual void destroy(); 43 43 -
code/branches/cpp11_v2/src/modules/weapons/projectiles/IceGunProjectile.h
r10629 r10817 62 62 63 63 protected: 64 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) ;64 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) override; 65 65 private: 66 66 float freezeTime_; //The duration of the freezing effect on a target -
code/branches/cpp11_v2/src/modules/weapons/projectiles/LightningGunProjectile.h
r9667 r10817 58 58 virtual ~LightningGunProjectile() {} 59 59 60 virtual void setMaterial(const std::string& material) ;60 virtual void setMaterial(const std::string& material) override; 61 61 62 62 private: -
code/branches/cpp11_v2/src/modules/weapons/projectiles/ParticleProjectile.h
r9667 r10817 53 53 ParticleProjectile(Context* context); 54 54 virtual ~ParticleProjectile(); 55 virtual void changedVisibility() ;55 virtual void changedVisibility() override; 56 56 57 57 private: -
code/branches/cpp11_v2/src/modules/weapons/projectiles/Projectile.h
r10629 r10817 64 64 void setConfigValues(); 65 65 66 virtual void tick(float dt) ;67 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) ;66 virtual void tick(float dt) override; 67 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) override; 68 68 69 69 protected: -
code/branches/cpp11_v2/src/modules/weapons/projectiles/Rocket.h
r10216 r10817 62 62 virtual ~Rocket(); 63 63 64 virtual void tick(float dt) ; //!< Defines which actions the Rocket has to take in each tick.64 virtual void tick(float dt) override; //!< Defines which actions the Rocket has to take in each tick. 65 65 66 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) ;67 virtual void destroyObject(void) ;66 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) override; 67 virtual void destroyObject(void) override; 68 68 void destructionEffect(); 69 69 70 virtual void moveFrontBack(const Vector2& value) {}71 virtual void moveRightLeft(const Vector2& value) {}72 virtual void moveUpDown(const Vector2& value) {}70 virtual void moveFrontBack(const Vector2& value) override {} 71 virtual void moveRightLeft(const Vector2& value) override {} 72 virtual void moveUpDown(const Vector2& value) override {} 73 73 74 virtual void rotateYaw(const Vector2& value) ;75 virtual void rotatePitch(const Vector2& value) ;76 virtual void rotateRoll(const Vector2& value) ;74 virtual void rotateYaw(const Vector2& value) override; 75 virtual void rotatePitch(const Vector2& value) override; 76 virtual void rotateRoll(const Vector2& value) override; 77 77 78 78 /** … … 114 114 { this->rotateRoll(Vector2(value, 0)); } 115 115 116 virtual void setShooter(Pawn* shooter) ;116 virtual void setShooter(Pawn* shooter) override; 117 117 118 virtual void fired(unsigned int firemode) ;118 virtual void fired(unsigned int firemode) override; 119 119 120 120 private: -
code/branches/cpp11_v2/src/modules/weapons/projectiles/RocketOld.h
r10622 r10817 62 62 virtual ~RocketOld(); 63 63 64 virtual void tick(float dt) ; //!< Defines which actions the RocketOld has to take in each tick.64 virtual void tick(float dt) override; //!< Defines which actions the RocketOld has to take in each tick. 65 65 66 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) ;67 virtual void destroyObject(void) ;66 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) override; 67 virtual void destroyObject(void) override; 68 68 void destructionEffect(); 69 69 70 virtual void moveFrontBack(const Vector2& value) {}71 virtual void moveRightLeft(const Vector2& value) {}72 virtual void moveUpDown(const Vector2& value) {}70 virtual void moveFrontBack(const Vector2& value) override {} 71 virtual void moveRightLeft(const Vector2& value) override {} 72 virtual void moveUpDown(const Vector2& value) override {} 73 73 74 virtual void rotateYaw(const Vector2& value) ;75 virtual void rotatePitch(const Vector2& value) ;76 virtual void rotateRoll(const Vector2& value) ;74 virtual void rotateYaw(const Vector2& value) override; 75 virtual void rotatePitch(const Vector2& value) override; 76 virtual void rotateRoll(const Vector2& value) override; 77 77 78 78 /** … … 114 114 { this->rotateRoll(Vector2(value, 0)); } 115 115 116 virtual void setShooter(Pawn* shooter) ;116 virtual void setShooter(Pawn* shooter) override; 117 117 118 virtual void fired(unsigned int firemode) ;118 virtual void fired(unsigned int firemode) override; 119 119 120 120 private: -
code/branches/cpp11_v2/src/modules/weapons/projectiles/SimpleRocket.h
r10216 r10817 62 62 SimpleRocket(Context* context); 63 63 virtual ~SimpleRocket(); 64 virtual void tick(float dt) ;64 virtual void tick(float dt) override; 65 65 66 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) ;66 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) override; 67 67 68 68 void disableFire(); //!< Method to disable the fire and stop all acceleration 69 69 70 virtual void moveFrontBack(const Vector2& value) {}71 virtual void moveRightLeft(const Vector2& value) {}72 virtual void moveUpDown(const Vector2& value) {}70 virtual void moveFrontBack(const Vector2& value) override{} 71 virtual void moveRightLeft(const Vector2& value) override{} 72 virtual void moveUpDown(const Vector2& value) override{} 73 73 74 virtual void rotateYaw(const Vector2& value) ;75 virtual void rotatePitch(const Vector2& value) ;76 virtual void rotateRoll(const Vector2& value) ;74 virtual void rotateYaw(const Vector2& value) override; 75 virtual void rotatePitch(const Vector2& value) override; 76 virtual void rotateRoll(const Vector2& value) override; 77 77 void setDestroy(); 78 78 … … 115 115 { this->rotateRoll(Vector2(value, 0)); } 116 116 117 virtual void setShooter(Pawn* shooter) ;117 virtual void setShooter(Pawn* shooter) override; 118 118 119 119 inline bool hasFuel() const -
code/branches/cpp11_v2/src/modules/weapons/weaponmodes/EnergyDrink.h
r9667 r10817 57 57 virtual ~EnergyDrink() {} 58 58 59 virtual void fire() ;60 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;59 virtual void fire() override; 60 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 61 61 62 62 private: -
code/branches/cpp11_v2/src/modules/weapons/weaponmodes/FusionFire.h
r9667 r10817 54 54 virtual ~FusionFire() {} 55 55 56 virtual void fire() ;56 virtual void fire() override; 57 57 58 58 private: -
code/branches/cpp11_v2/src/modules/weapons/weaponmodes/GravityBombFire.h
r10622 r10817 34 34 virtual ~GravityBombFire(); 35 35 36 virtual void fire() ;36 virtual void fire() override; 37 37 38 38 private: -
code/branches/cpp11_v2/src/modules/weapons/weaponmodes/HsW01.h
r9945 r10817 56 56 virtual ~HsW01(); 57 57 58 virtual void fire() ;59 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;58 virtual void fire() override; 59 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 60 60 61 61 protected: -
code/branches/cpp11_v2/src/modules/weapons/weaponmodes/IceGun.h
r10629 r10817 54 54 virtual ~IceGun(); 55 55 56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;57 virtual void fire() ;56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 57 virtual void fire() override; 58 58 59 59 inline void setFreezeTime(float freezeTime) -
code/branches/cpp11_v2/src/modules/weapons/weaponmodes/LaserFire.h
r9667 r10817 54 54 virtual ~LaserFire() {} 55 55 56 virtual void fire() ;56 virtual void fire() override; 57 57 58 58 private: -
code/branches/cpp11_v2/src/modules/weapons/weaponmodes/LightningGun.h
r9667 r10817 54 54 virtual ~LightningGun(); 55 55 56 virtual void fire() ;56 virtual void fire() override; 57 57 58 58 private: -
code/branches/cpp11_v2/src/modules/weapons/weaponmodes/RocketFire.h
r9667 r10817 54 54 virtual ~RocketFire(); 55 55 56 virtual void fire() ;56 virtual void fire() override; 57 57 58 58 private: -
code/branches/cpp11_v2/src/modules/weapons/weaponmodes/RocketFireOld.h
r10622 r10817 54 54 virtual ~RocketFireOld(); 55 55 56 virtual void fire() ;56 virtual void fire() override; 57 57 58 58 private: -
code/branches/cpp11_v2/src/modules/weapons/weaponmodes/SimpleRocketFire.h
r9667 r10817 53 53 virtual ~SimpleRocketFire(); 54 54 void deactivateFire(); 55 virtual void fire() ;55 virtual void fire() override; 56 56 57 57 private: -
code/branches/cpp11_v2/src/modules/weapons/weaponmodes/SplitGun.h
r10629 r10817 54 54 virtual ~SplitGun(); 55 55 56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;57 virtual void fire() ;56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 57 virtual void fire() override; 58 58 59 59 inline void setNumberOfSplits(int numberOfSplits)
Note: See TracChangeset
for help on using the changeset viewer.