Changeset 10817 for code/branches/cpp11_v2/src/orxonox
- Timestamp:
- Nov 19, 2015, 11:40:28 AM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/orxonox
- Files:
-
- 88 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/orxonox/Level.h
r10624 r10817 47 47 virtual ~Level(); 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 void playerEntered(PlayerInfo* player); -
code/branches/cpp11_v2/src/orxonox/LevelInfo.h
r9667 r10817 207 207 virtual ~LevelInfo(); 208 208 209 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Creates a LevelInfo object through XML.209 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Creates a LevelInfo object through XML. 210 210 211 211 /** -
code/branches/cpp11_v2/src/orxonox/PlayerManager.h
r5966 r10817 50 50 { return this->clients_; } 51 51 52 void clientConnected(unsigned int clientID) ;53 void clientDisconnected(unsigned int clientID) ;52 void clientConnected(unsigned int clientID) override; 53 void clientDisconnected(unsigned int clientID) override; 54 54 void disconnectAllClients(); 55 55 -
code/branches/cpp11_v2/src/orxonox/Radar.h
r9667 r10817 54 54 virtual ~Radar(); 55 55 56 virtual void tick(float dt) ;56 virtual void tick(float dt) override; 57 57 58 58 const RadarViewable* getFocus(); -
code/branches/cpp11_v2/src/orxonox/Scene.h
r10768 r10817 51 51 virtual ~Scene(); 52 52 53 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;53 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 54 54 void registerVariables(); 55 55 … … 79 79 { return this->radar_; } 80 80 81 inline virtual uint32_t getSceneID() const { return this->getObjectID(); }81 inline virtual uint32_t getSceneID() const override { return this->getObjectID(); } 82 82 83 virtual void tick(float dt) ;83 virtual void tick(float dt) override; 84 84 85 85 private: -
code/branches/cpp11_v2/src/orxonox/chat/ChatHistory.h
r10624 r10817 82 82 * \param senderID Identification number of the sender 83 83 */ 84 virtual void incomingChat(const std::string& message, const std::string& name) ;84 virtual void incomingChat(const std::string& message, const std::string& name) override; 85 85 86 86 /** Synchronize logfile onto the hard drive -
code/branches/cpp11_v2/src/orxonox/chat/ChatInputHandler.h
r9675 r10817 125 125 * history window of the full chat window) 126 126 */ 127 void incomingChat(const std::string& message, const std::string& name) ;127 void incomingChat(const std::string& message, const std::string& name) override; 128 128 129 129 /** \param full true means show full chat window with history, -
code/branches/cpp11_v2/src/orxonox/chat/ChatManager.h
r8858 r10817 55 55 ChatManager(const ChatManager&); 56 56 57 virtual void incomingChat(const std::string& message, unsigned int sourceID) ;57 virtual void incomingChat(const std::string& message, unsigned int sourceID) override; 58 58 59 59 static ChatManager* singletonPtr_s; -
code/branches/cpp11_v2/src/orxonox/collisionshapes/CollisionShape.h
r10765 r10817 61 61 virtual ~CollisionShape(); 62 62 63 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;63 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 64 64 65 65 /** -
code/branches/cpp11_v2/src/orxonox/collisionshapes/CompoundCollisionShape.h
r10768 r10817 61 61 virtual ~CompoundCollisionShape(); 62 62 63 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;63 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 64 64 65 65 void attach(CollisionShape* shape); … … 70 70 void updateAttachedShape(CollisionShape* shape); 71 71 72 virtual void changedScale() ;72 virtual void changedScale() override; 73 73 74 74 private: 75 75 void updatePublicShape(); 76 inline virtual btCollisionShape* createNewShape() const 76 inline virtual btCollisionShape* createNewShape() const override 77 77 { assert(false); return nullptr; } 78 78 -
code/branches/cpp11_v2/src/orxonox/collisionshapes/WorldEntityCollisionShape.h
r10624 r10817 46 46 47 47 protected: 48 virtual void updateParent() ;48 virtual void updateParent() override; 49 49 50 50 private: 51 void parentChanged() ;51 void parentChanged() override; 52 52 53 53 WorldEntity* worldEntityOwner_; -
code/branches/cpp11_v2/src/orxonox/controllers/AIController.h
r9667 r10817 44 44 virtual ~AIController(); 45 45 46 virtual void tick(float dt) ; //<! Carrying out the targets set in action().46 virtual void tick(float dt) override; //<! Carrying out the targets set in action(). 47 47 48 48 protected: -
code/branches/cpp11_v2/src/orxonox/controllers/ArtificialController.h
r10769 r10817 42 42 virtual ~ArtificialController(); 43 43 44 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;44 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 45 45 46 46 void abandonTarget(Pawn* target); 47 47 48 virtual void changedControllableEntity() ;48 virtual void changedControllableEntity() override; 49 49 50 50 virtual void doFire(); -
code/branches/cpp11_v2/src/orxonox/controllers/Controller.h
r9797 r10817 45 45 Controller(Context* context); 46 46 virtual ~Controller(); 47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 48 48 inline void setPlayer(PlayerInfo* player) 49 49 { this->player_ = player; } -
code/branches/cpp11_v2/src/orxonox/controllers/ControllerDirector.h
r10622 r10817 43 43 virtual ~ControllerDirector() { } 44 44 45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 46 46 bool party(bool bTriggered, BaseObject* trigger); 47 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) ;47 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override; 48 48 49 49 inline void setScriptName(const std::string& name) { this->scriptname_ = name; } -
code/branches/cpp11_v2/src/orxonox/controllers/DroneController.h
r9667 r10817 53 53 virtual ~DroneController(); 54 54 55 virtual void tick(float dt) ; //!< The controlling happens here. This method defines what the controller has to do each tick.55 virtual void tick(float dt) override; //!< The controlling happens here. This method defines what the controller has to do each tick. 56 56 57 57 void setOwner(Pawn* owner); -
code/branches/cpp11_v2/src/orxonox/controllers/FormationController.h
r10631 r10817 50 50 virtual ~FormationController(); 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 … … 93 93 { return this->formationMode_; } 94 94 95 virtual void hit(Pawn* originator, btManifoldPoint& contactpoint, float damage) ;95 virtual void hit(Pawn* originator, btManifoldPoint& contactpoint, float damage) override; 96 96 97 97 FormationController* getMaster( void ) { return myMaster_; } … … 99 99 FormationController* getSlave( void ) { return this->slaves_.back(); } 100 100 101 virtual void changedControllableEntity() ;101 virtual void changedControllableEntity() override; 102 102 103 103 protected: -
code/branches/cpp11_v2/src/orxonox/controllers/HumanController.h
r10624 r10817 47 47 virtual ~HumanController(); 48 48 49 virtual void tick(float dt) ;49 virtual void tick(float dt) override; 50 50 51 51 static void moveFrontBack(const Vector2& value); -
code/branches/cpp11_v2/src/orxonox/controllers/NewHumanController.h
r9667 r10817 45 45 virtual ~NewHumanController(); 46 46 47 virtual void tick(float dt) ;47 virtual void tick(float dt) override; 48 48 49 virtual void frontback(const Vector2& value) ;50 virtual void yaw(const Vector2& value) ;51 virtual void pitch(const Vector2& value) ;49 virtual void frontback(const Vector2& value) override; 50 virtual void yaw(const Vector2& value) override; 51 virtual void pitch(const Vector2& value) override; 52 52 53 53 static void accelerate(); 54 54 static void decelerate(); 55 55 56 virtual void doFire(unsigned int firemode) ;56 virtual void doFire(unsigned int firemode) override; 57 57 58 virtual void hit(Pawn* originator, btManifoldPoint& contactpoint, float damage) ;58 virtual void hit(Pawn* originator, btManifoldPoint& contactpoint, float damage) override; 59 59 60 60 static void unfire(); … … 65 65 static void changeMode(); 66 66 67 virtual void changedControllableEntity() ;68 virtual void doPauseControl() ;69 virtual void doResumeControl() ;67 virtual void changedControllableEntity() override; 68 virtual void doPauseControl() override; 69 virtual void doResumeControl() override; 70 70 71 71 float getCurrentYaw(){ return this->currentYaw_; } -
code/branches/cpp11_v2/src/orxonox/controllers/ScriptController.h
r10622 r10817 71 71 void setPlayer(PlayerInfo* player) { this->player_ = player; } 72 72 73 virtual void tick(float dt) ;73 virtual void tick(float dt) override; 74 74 75 75 // LUA interface -
code/branches/cpp11_v2/src/orxonox/controllers/WaypointController.h
r9667 r10817 44 44 virtual ~WaypointController(); 45 45 46 virtual void tick(float dt) ;46 virtual void tick(float dt) override; 47 47 48 48 protected: -
code/branches/cpp11_v2/src/orxonox/controllers/WaypointPatrolController.h
r9716 r10817 43 43 virtual ~WaypointPatrolController() {} 44 44 45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;46 virtual void tick(float dt) ;45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 46 virtual void tick(float dt) override; 47 47 48 48 inline void setAlertnessRadius(float radius) -
code/branches/cpp11_v2/src/orxonox/gamestates/GSClient.h
r7163 r10817 43 43 ~GSClient(); 44 44 45 void activate() ;46 void deactivate() ;47 void update(const Clock& time) ;45 void activate() override; 46 void deactivate() override; 47 void update(const Clock& time) override; 48 48 }; 49 49 } -
code/branches/cpp11_v2/src/orxonox/gamestates/GSGraphics.h
r6417 r10817 53 53 ~GSGraphics(); 54 54 55 void activate() ;56 void deactivate() ;57 void update(const Clock& time) ;55 void activate() override; 56 void deactivate() override; 57 void update(const Clock& time) override; 58 58 59 59 private: -
code/branches/cpp11_v2/src/orxonox/gamestates/GSLevel.h
r10624 r10817 44 44 ~GSLevel(); 45 45 46 void activate() ;47 void deactivate() ;48 void update(const Clock& time) ;46 void activate() override; 47 void deactivate() override; 48 void update(const Clock& time) override; 49 49 50 50 static void startMainMenu(void); //!< Starts the MainMenu -
code/branches/cpp11_v2/src/orxonox/gamestates/GSMainMenu.h
r9667 r10817 44 44 ~GSMainMenu(); 45 45 46 void activate() ;47 void deactivate() ;48 void update(const Clock& time) ;46 void activate() override; 47 void deactivate() override; 48 void update(const Clock& time) override; 49 49 50 50 void setConfigValues(); -
code/branches/cpp11_v2/src/orxonox/gamestates/GSMasterServer.h
r7801 r10817 45 45 ~GSMasterServer(); 46 46 47 void activate() ;48 void deactivate() ;49 void update(const Clock& time) ;47 void activate() override; 48 void deactivate() override; 49 void update(const Clock& time) override; 50 50 51 51 private: -
code/branches/cpp11_v2/src/orxonox/gamestates/GSRoot.h
r8706 r10817 44 44 static void printObjects(); 45 45 46 void activate() ;47 void deactivate() ;48 void update(const Clock& time) ;46 void activate() override; 47 void deactivate() override; 48 void update(const Clock& time) override; 49 49 50 50 // this has to be public because proteced triggers a bug in msvc … … 59 59 60 60 protected: 61 virtual void changedTimeFactor(float factor_new, float factor_old) ;61 virtual void changedTimeFactor(float factor_new, float factor_old) override; 62 62 63 63 private: -
code/branches/cpp11_v2/src/orxonox/gamestates/GSServer.h
r5929 r10817 43 43 ~GSServer(); 44 44 45 void activate() ;46 void deactivate() ;47 void update(const Clock& time) ;45 void activate() override; 46 void deactivate() override; 47 void update(const Clock& time) override; 48 48 49 49 private: -
code/branches/cpp11_v2/src/orxonox/gamestates/GSStandalone.h
r5929 r10817 41 41 ~GSStandalone(); 42 42 43 void activate() ;44 void deactivate() ;45 void update(const Clock& time) ;43 void activate() override; 44 void deactivate() override; 45 void update(const Clock& time) override; 46 46 47 47 private: -
code/branches/cpp11_v2/src/orxonox/gametypes/Asteroids.h
r10768 r10817 41 41 virtual ~Asteroids() {} 42 42 43 virtual void tick(float dt) ;43 virtual void tick(float dt) override; 44 44 45 virtual void start() ;46 virtual void end() ;45 virtual void start() override; 46 virtual void end() override; 47 47 48 48 inline void firstCheckpointReached(bool reached) … … 50 50 51 51 protected: 52 virtual void pawnKilled(Pawn* victim, Pawn* killer = nullptr) ;52 virtual void pawnKilled(Pawn* victim, Pawn* killer = nullptr) override; 53 53 54 54 private: -
code/branches/cpp11_v2/src/orxonox/gametypes/Deathmatch.h
r10768 r10817 41 41 virtual ~Deathmatch() {} 42 42 43 virtual void start() ;44 virtual void end() ;45 virtual void playerEntered(PlayerInfo* player) ;46 virtual bool playerLeft(PlayerInfo* player) ;47 virtual bool playerChangedName(PlayerInfo* player) ;43 virtual void start() override; 44 virtual void end() override; 45 virtual void playerEntered(PlayerInfo* player) override; 46 virtual bool playerLeft(PlayerInfo* player) override; 47 virtual bool playerChangedName(PlayerInfo* player) override; 48 48 49 virtual void pawnKilled(Pawn* victim, Pawn* killer = nullptr) ;50 virtual void playerScored(PlayerInfo* player, int score = 1) ;49 virtual void pawnKilled(Pawn* victim, Pawn* killer = nullptr) override; 50 virtual void playerScored(PlayerInfo* player, int score = 1) override; 51 51 }; 52 52 } -
code/branches/cpp11_v2/src/orxonox/gametypes/Dynamicmatch.h
r10768 r10817 64 64 bool tutorial; //goal: new players receive messages how the new gametype works - later it can be switched off. 65 65 66 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr) ; //ok - score function and management of parties67 virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr) ; //ok - simple68 virtual void start() ;69 virtual void end() ; //Wie geht das mit der Punkteausgabe aendern? Z.B: Persoenliche Nachricht?70 virtual void playerEntered(PlayerInfo* player) ;71 virtual void playerStartsControllingPawn(PlayerInfo* player, Pawn* pawn) ;//is used to initialize the player's party and colour72 virtual bool playerLeft(PlayerInfo* player) ;73 virtual bool playerChangedName(PlayerInfo* player) ;//unchanged66 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr) override; //ok - score function and management of parties 67 virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr) override; //ok - simple 68 virtual void start() override; 69 virtual void end() override; //Wie geht das mit der Punkteausgabe aendern? Z.B: Persoenliche Nachricht? 70 virtual void playerEntered(PlayerInfo* player) override; 71 virtual void playerStartsControllingPawn(PlayerInfo* player, Pawn* pawn) override;//is used to initialize the player's party and colour 72 virtual bool playerLeft(PlayerInfo* player) override; 73 virtual bool playerChangedName(PlayerInfo* player) override;//unchanged 74 74 75 75 /*virtual void instructions(); … … 78 78 void grantPigBoost(SpaceShip* spaceship); // Grant the piggy a boost. 79 79 void resetSpeedFactor(SpaceShip* spaceship); 80 void tick (float dt) ;// used to end the game81 SpawnPoint* getBestSpawnPoint(PlayerInfo* player) const ;80 void tick (float dt) override;// used to end the game 81 SpawnPoint* getBestSpawnPoint(PlayerInfo* player) const override; 82 82 83 83 -
code/branches/cpp11_v2/src/orxonox/gametypes/Gametype.h
r10768 r10817 76 76 void setConfigValues(); 77 77 78 virtual void tick(float dt) ;78 virtual void tick(float dt) override; 79 79 80 80 inline const GametypeInfo* getGametypeInfo() const … … 175 175 virtual void spawnDeadPlayersIfRequested(); 176 176 177 virtual GSLevelMementoState* exportMementoState() ;178 virtual void importMementoState(const std::vector<GSLevelMementoState*>& states) ;177 virtual GSLevelMementoState* exportMementoState() override; 178 virtual void importMementoState(const std::vector<GSLevelMementoState*>& states) override; 179 179 180 180 WeakPtr<GametypeInfo> gtinfo_; -
code/branches/cpp11_v2/src/orxonox/gametypes/LastManStanding.h
r10768 r10817 61 61 bool bHardPunishment; //!< Switches between damage and death as punishment. 62 62 float punishDamageRate; //!< Makes Damage adjustable. 63 virtual void spawnDeadPlayersIfRequested() ; //!< Prevents dead players to respawn.63 virtual void spawnDeadPlayersIfRequested() override; //!< Prevents dead players to respawn. 64 64 virtual int getMinLives(); //!< Returns minimum of each player's lives; players with 0 lives are skipped; 65 65 … … 69 69 void setConfigValues(); //!< Makes values configurable. 70 70 71 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr) ; //!< If a player shoot's an opponent, his punishment countdown will be resetted.72 virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr) ; //!< Manages each players lives.71 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr) override; //!< If a player shoot's an opponent, his punishment countdown will be resetted. 72 virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr) override; //!< Manages each players lives. 73 73 74 virtual void end() ; //!< Sends an end message.74 virtual void end() override; //!< Sends an end message. 75 75 int playerGetLives(PlayerInfo* player); //!< getFunction for the map "playerLives_". 76 76 int getNumPlayersAlive() const; //!< Returns the number of players that are still alive. 77 virtual void playerEntered(PlayerInfo* player) ; //!< Initializes values.78 virtual bool playerLeft(PlayerInfo* player) ; //!< Manages all local variables.79 virtual void playerStartsControllingPawn(PlayerInfo* player, Pawn* pawn) ; //!< Resets punishment time and respawn delay.77 virtual void playerEntered(PlayerInfo* player) override; //!< Initializes values. 78 virtual bool playerLeft(PlayerInfo* player) override; //!< Manages all local variables. 79 virtual void playerStartsControllingPawn(PlayerInfo* player, Pawn* pawn) override; //!< Resets punishment time and respawn delay. 80 80 81 81 void punishPlayer(PlayerInfo* player); //!< Function in order to kill a player. Punishment for hiding longer than "timeRemaining". 82 void tick (float dt) ; //!< used to end the game82 void tick (float dt) override; //!< used to end the game 83 83 }; 84 84 } -
code/branches/cpp11_v2/src/orxonox/gametypes/LastTeamStanding.h
r10768 r10817 67 67 std::map<PlayerInfo*, bool> inGame_; //!< Indicates each Player's state. 68 68 69 virtual void spawnDeadPlayersIfRequested() ; //!< Prevents dead players to respawn.69 virtual void spawnDeadPlayersIfRequested() override; //!< Prevents dead players to respawn. 70 70 virtual int getMinLives(); //!< Returns minimum of each player's lives; players with 0 lives are skipped; 71 71 … … 74 74 virtual ~LastTeamStanding(); //!< Default Destructor. 75 75 76 virtual void playerEntered(PlayerInfo* player) ; //!< Initializes values.77 virtual bool playerLeft(PlayerInfo* player) ; //!< Manages all local variables.76 virtual void playerEntered(PlayerInfo* player) override; //!< Initializes values. 77 virtual bool playerLeft(PlayerInfo* player) override; //!< Manages all local variables. 78 78 79 virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr) ; //!< Manages each player's lost lives.80 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr) ; //!< If a player shoot's an opponent, his punishment countdown will be resetted.81 virtual void playerStartsControllingPawn(PlayerInfo* player, Pawn* pawn) ; //!< Resets punishment time and respawn delay.82 void tick (float dt) ; //!< used to end the game83 virtual void end() ; //!< Sends an end message.79 virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr) override; //!< Manages each player's lost lives. 80 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr) override; //!< If a player shoot's an opponent, his punishment countdown will be resetted. 81 virtual void playerStartsControllingPawn(PlayerInfo* player, Pawn* pawn) override; //!< Resets punishment time and respawn delay. 82 void tick (float dt) override; //!< used to end the game 83 virtual void end() override; //!< Sends an end message. 84 84 void punishPlayer(PlayerInfo* player); //!< Function in order to kill a player. Punishment for hiding longer than "timeRemaining". 85 85 int playerGetLives(PlayerInfo* player); //!< getFunction for the map "playerLives_". -
code/branches/cpp11_v2/src/orxonox/gametypes/Mission.h
r10768 r10817 42 42 virtual ~Mission() {} 43 43 44 virtual void tick(float dt) ;44 virtual void tick(float dt) override; 45 45 46 virtual void start() ;47 virtual void end() ;46 virtual void start() override; 47 virtual void end() override; 48 48 virtual void setTeams(); 49 virtual void addBots(unsigned int amount) {} //<! overwrite function in order to bypass the addbots command49 virtual void addBots(unsigned int amount) override{} //<! overwrite function in order to bypass the addbots command 50 50 inline void setLives(unsigned int amount) 51 51 {this->lives_ = amount;} … … 58 58 59 59 protected: 60 virtual void pawnKilled(Pawn* victim, Pawn* killer = nullptr) ;60 virtual void pawnKilled(Pawn* victim, Pawn* killer = nullptr) override; 61 61 bool missionAccomplished_; //<! indicates if player successfully finsihed the mission; 62 62 int lives_; //<! amount of player's lives <-> nr. of retries -
code/branches/cpp11_v2/src/orxonox/gametypes/TeamBaseMatch.h
r10768 r10817 44 44 virtual ~TeamBaseMatch() {} 45 45 46 virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr) ;47 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator) ;46 virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr) override; 47 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator) override; 48 48 49 virtual void playerScored(PlayerInfo* player, int score = 1) ;49 virtual void playerScored(PlayerInfo* player, int score = 1) override; 50 50 virtual void showPoints(); 51 51 virtual void endGame(); -
code/branches/cpp11_v2/src/orxonox/gametypes/TeamDeathmatch.h
r10768 r10817 42 42 43 43 void setConfigValues(); 44 virtual void start() ;45 virtual void end() ;46 virtual void playerEntered(PlayerInfo* player) ;47 virtual bool playerLeft(PlayerInfo* player) ;48 virtual bool playerChangedName(PlayerInfo* player) ;44 virtual void start() override; 45 virtual void end() override; 46 virtual void playerEntered(PlayerInfo* player) override; 47 virtual bool playerLeft(PlayerInfo* player) override; 48 virtual bool playerChangedName(PlayerInfo* player) override; 49 49 50 virtual void pawnKilled(Pawn* victim, Pawn* killer = nullptr) ;51 virtual void playerScored(PlayerInfo* player, int score = 1) ;50 virtual void pawnKilled(Pawn* victim, Pawn* killer = nullptr) override; 51 virtual void playerScored(PlayerInfo* player, int score = 1) override; 52 52 protected: 53 53 int maxScore_; -
code/branches/cpp11_v2/src/orxonox/gametypes/TeamGametype.h
r10768 r10817 46 46 void setConfigValues(); 47 47 48 virtual void playerEntered(PlayerInfo* player) ;48 virtual void playerEntered(PlayerInfo* player) override; 49 49 virtual void findAndSetTeam(PlayerInfo* player); 50 virtual bool playerLeft(PlayerInfo* player) ;51 virtual void spawnDeadPlayersIfRequested() ; //!< Prevents players to respawn.50 virtual bool playerLeft(PlayerInfo* player) override; 51 virtual void spawnDeadPlayersIfRequested() override; //!< Prevents players to respawn. 52 52 53 virtual bool allowPawnHit(Pawn* victim, Pawn* originator = nullptr) ;54 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr) ;55 virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr) ;53 virtual bool allowPawnHit(Pawn* victim, Pawn* originator = nullptr) override; 54 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr) override; 55 virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr) override; 56 56 57 virtual void playerStartsControllingPawn(PlayerInfo* player, Pawn* pawn) ;57 virtual void playerStartsControllingPawn(PlayerInfo* player, Pawn* pawn) override; 58 58 59 59 … … 67 67 68 68 protected: 69 virtual SpawnPoint* getBestSpawnPoint(PlayerInfo* player) const ;69 virtual SpawnPoint* getBestSpawnPoint(PlayerInfo* player) const override; 70 70 bool pawnsAreInTheSameTeam(Pawn* pawn1, Pawn* pawn2); 71 71 -
code/branches/cpp11_v2/src/orxonox/gametypes/UnderAttack.h
r10768 r10817 43 43 44 44 void setConfigValues(); 45 void tick (float dt) ;45 void tick (float dt) override; 46 46 void addDestroyer(Destroyer* destroyer); 47 47 inline Destroyer* getDestroyer() const 48 48 { return this->destroyer_; } 49 49 50 virtual bool allowPawnHit(Pawn* victim, Pawn* originator = nullptr) ;51 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr) ;52 virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr) ;53 virtual void playerEntered(PlayerInfo* player) ;50 virtual bool allowPawnHit(Pawn* victim, Pawn* originator = nullptr) override; 51 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr) override; 52 virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr) override; 53 virtual void playerEntered(PlayerInfo* player) override; 54 54 55 55 protected: -
code/branches/cpp11_v2/src/orxonox/graphics/AnimatedModel.h
r9667 r10817 44 44 virtual ~AnimatedModel(); 45 45 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 47 47 void registerVariables(); 48 48 … … 51 51 virtual void setAnimEnabled(bool enabled); 52 52 virtual void setAnimLoop(bool loop); 53 virtual void tick(float dt) ;53 virtual void tick(float dt) override; 54 54 virtual void changedMesh(); 55 55 -
code/branches/cpp11_v2/src/orxonox/graphics/Backlight.h
r9667 r10817 44 44 virtual ~Backlight(); 45 45 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 47 47 48 virtual void tick(float dt) ;49 virtual void changedVisibility() ;48 virtual void tick(float dt) override; 49 virtual void changedVisibility() override; 50 50 51 51 inline void setWidth(float width) … … 74 74 { return this->trailmaterial_; } 75 75 76 virtual void changedScale() ;76 virtual void changedScale() override; 77 77 78 78 protected: 79 virtual void changedTimeFactor(float factor_new, float factor_old) ;79 virtual void changedTimeFactor(float factor_new, float factor_old) override; 80 80 81 81 private: 82 82 void registerVariables(); 83 virtual void startturnonoff() ;84 virtual void stopturnonoff() ;85 virtual void poststopturnonoff() ;86 virtual void changedColour() ;83 virtual void startturnonoff() override; 84 virtual void stopturnonoff() override; 85 virtual void poststopturnonoff() override; 86 virtual void changedColour() override; 87 87 void update_width(); 88 88 void update_lifetime(); -
code/branches/cpp11_v2/src/orxonox/graphics/Billboard.h
r9667 r10817 47 47 virtual ~Billboard(); 48 48 49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 50 50 51 virtual void changedVisibility() ;51 virtual void changedVisibility() override; 52 52 53 53 inline const BillboardSet& getBillboardSet() const … … 71 71 72 72 73 virtual void setTeamColour(const ColourValue& colour) 73 virtual void setTeamColour(const ColourValue& colour) override 74 74 { this->setColour(colour); } 75 75 -
code/branches/cpp11_v2/src/orxonox/graphics/BlinkingBillboard.h
r9667 r10817 44 44 virtual ~BlinkingBillboard(); 45 45 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 47 47 48 virtual void tick(float dt) ;48 virtual void tick(float dt) override; 49 49 50 50 inline void setAmplitude(float amplitude) -
code/branches/cpp11_v2/src/orxonox/graphics/Camera.h
r9667 r10817 50 50 51 51 void setConfigValues(); 52 virtual void tick(float dt) ;52 virtual void tick(float dt) override; 53 53 54 54 void requestFocus(); … … 72 72 void configvaluecallback_changedNearClipDistance(); 73 73 74 void windowResized(unsigned int newWidth, unsigned int newHeight) ;74 void windowResized(unsigned int newWidth, unsigned int newHeight) override; 75 75 76 76 Ogre::Camera* camera_; -
code/branches/cpp11_v2/src/orxonox/graphics/FadingBillboard.h
r9667 r10817 45 45 virtual ~FadingBillboard(); 46 46 47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 48 48 49 virtual void tick(float dt) ;50 virtual void changedActivity() ;51 virtual void changedVisibility() ;49 virtual void tick(float dt) override; 50 virtual void changedActivity() override; 51 virtual void changedVisibility() override; 52 52 53 53 inline void setTurnOnTime(float turnontime) … … 69 69 virtual void stopturnonoff(); 70 70 virtual void poststopturnonoff(); 71 virtual void changedColour() ;71 virtual void changedColour() override; 72 72 73 73 float turnontime_; -
code/branches/cpp11_v2/src/orxonox/graphics/GlobalShader.h
r9667 r10817 44 44 virtual ~GlobalShader(); 45 45 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 47 47 48 virtual void changedVisibility() ;48 virtual void changedVisibility() override; 49 49 50 50 inline const Shader& getShader() const -
code/branches/cpp11_v2/src/orxonox/graphics/Light.h
r9667 r10817 56 56 virtual ~Light(); 57 57 58 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;58 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 59 59 60 virtual void changedVisibility() ;60 virtual void changedVisibility() override; 61 61 62 62 inline Ogre::Light* getLight() … … 78 78 { return this->specular_; } 79 79 80 virtual void setTeamColour(const ColourValue& colour) 80 virtual void setTeamColour(const ColourValue& colour) override 81 81 { this->setDiffuseColour(colour); this->setSpecularColour(colour); } 82 82 -
code/branches/cpp11_v2/src/orxonox/graphics/MeshLodInformation.h
r9667 r10817 50 50 float getReductionRate(){ return this->reductionRate_; } 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/orxonox/graphics/Model.h
r9667 r10817 46 46 void setConfigValues(); 47 47 48 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;48 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 49 49 50 virtual void changedVisibility() ;50 virtual void changedVisibility() override; 51 51 52 52 inline const Mesh& getMesh() const -
code/branches/cpp11_v2/src/orxonox/graphics/ParticleEmitter.h
r9950 r10817 43 43 virtual ~ParticleEmitter(); 44 44 45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 46 46 47 virtual void changedVisibility() ;48 virtual void changedActivity() ;47 virtual void changedVisibility() override; 48 virtual void changedActivity() override; 49 49 50 50 inline ParticleInterface* getParticleInterface() const -
code/branches/cpp11_v2/src/orxonox/graphics/ParticleSpawner.h
r9667 r10817 43 43 virtual ~ParticleSpawner(); 44 44 45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;46 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) ;45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 46 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override; 47 47 48 48 inline void stop(bool bDestroy) -
code/branches/cpp11_v2/src/orxonox/infos/Bot.h
r9667 r10817 45 45 void setConfigValues(); 46 46 47 inline bool isInitialized() const 47 inline bool isInitialized() const override 48 48 { return true; } 49 inline float getPing() const 49 inline float getPing() const override 50 50 { return 0; } 51 inline float getPacketLossRatio() const 51 inline float getPacketLossRatio() const override 52 52 { return 0; } 53 53 -
code/branches/cpp11_v2/src/orxonox/infos/HumanPlayer.h
r10624 r10817 45 45 void setConfigValues(); 46 46 47 bool isInitialized() const ;48 float getPing() const ;49 float getPacketLossRatio() const ;47 bool isInitialized() const override; 48 float getPing() const override; 49 float getPacketLossRatio() const override; 50 50 51 51 void setClientID(unsigned int clientID); 52 52 53 virtual void switchGametype(Gametype* gametype) ;53 virtual void switchGametype(Gametype* gametype) override; 54 54 55 55 inline void setHumanHUDTemplate(const std::string& name) -
code/branches/cpp11_v2/src/orxonox/infos/PlayerInfo.h
r10769 r10817 44 44 virtual ~PlayerInfo(); 45 45 46 virtual void changedName() ;46 virtual void changedName() override; 47 47 virtual void switchGametype(Gametype* gametype); 48 48 -
code/branches/cpp11_v2/src/orxonox/interfaces/PickupCarrier.h
r10765 r10817 77 77 PickupCarrier(); //!< Constructor. 78 78 virtual ~PickupCarrier(); //!< Destructor. 79 void preDestroy(void) ; //!< Is called before the PickupCarrier is effectively destroyed.79 void preDestroy(void) override; //!< Is called before the PickupCarrier is effectively destroyed. 80 80 81 81 bool isTarget(const Pickupable* pickup) const; //!< Can be used to check whether the PickupCarrier or a child of his is a target ot the input Pickupable. -
code/branches/cpp11_v2/src/orxonox/interfaces/Pickupable.h
r10624 r10817 144 144 145 145 protected: 146 virtual void preDestroy(void) ; //!< A method that is called by Destroyable::destroy() before the object is actually destroyed.146 virtual void preDestroy(void) override; //!< A method that is called by Destroyable::destroy() before the object is actually destroyed. 147 147 virtual void destroyPickup(void); //!< Destroys a Pickupable. 148 148 virtual void carrierDestroyed(void); //!< Is called by the PickupCarrier when it is being destroyed. … … 182 182 // For implementing the Rewardable interface: 183 183 public: 184 virtual bool reward(PlayerInfo* player) ; //!< Method to transcribe a Pickupable as a Rewardable to the player.184 virtual bool reward(PlayerInfo* player) override; //!< Method to transcribe a Pickupable as a Rewardable to the player. 185 185 186 186 }; -
code/branches/cpp11_v2/src/orxonox/items/Engine.h
r10765 r10817 59 59 virtual ~Engine(); 60 60 61 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;61 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 62 62 void setConfigValues(); 63 63 -
code/branches/cpp11_v2/src/orxonox/items/MultiStateEngine.h
r9667 r10817 52 52 virtual ~MultiStateEngine(); 53 53 54 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;54 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 55 55 56 virtual void run(float dt) ;56 virtual void run(float dt) override; 57 57 58 virtual void addToSpaceShip(SpaceShip* ship) ;58 virtual void addToSpaceShip(SpaceShip* ship) override; 59 59 60 60 void addEffectContainer(EffectContainer* effect); -
code/branches/cpp11_v2/src/orxonox/items/PartDestructionEvent.h
r10262 r10817 100 100 virtual ~PartDestructionEvent(); 101 101 102 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;102 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 103 103 104 104 void execute(); -
code/branches/cpp11_v2/src/orxonox/items/ShipPart.h
r10624 r10817 47 47 virtual ~ShipPart(); 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 virtual void handleHit(float damage, float healthdamage, float shielddamage, Pawn* originator); -
code/branches/cpp11_v2/src/orxonox/overlays/GUISheet.h
r9667 r10817 44 44 ~GUISheet(); 45 45 46 void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;46 void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 47 47 48 48 void show(); -
code/branches/cpp11_v2/src/orxonox/overlays/InGameConsole.h
r10624 r10817 53 53 void setConfigValues(); 54 54 55 void preUpdate(const Clock& time) ;56 void postUpdate(const Clock& time) { /*no action*/ }55 void preUpdate(const Clock& time) override; 56 void postUpdate(const Clock& time) override { /*no action*/ } 57 57 58 58 static void openConsole(); … … 65 65 void deactivate(); 66 66 67 void linesChanged() ;68 void lineAdded() ;69 void inputChanged() ;70 void cursorChanged() ;71 void executed() ;72 void exit() ;67 void linesChanged() override; 68 void lineAdded() override; 69 void inputChanged() override; 70 void cursorChanged() override; 71 void executed() override; 72 void exit() override; 73 73 74 74 void shiftLines(); … … 77 77 void print(const std::string& text, Shell::LineType type, int index, bool alwaysShift = false); 78 78 79 void windowResized(unsigned int newWidth, unsigned int newHeight) ;79 void windowResized(unsigned int newWidth, unsigned int newHeight) override; 80 80 81 81 // config value related -
code/branches/cpp11_v2/src/orxonox/overlays/OrxonoxOverlay.h
r9667 r10817 90 90 virtual ~OrxonoxOverlay(); 91 91 92 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;93 94 virtual void changedName() ;92 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 93 94 virtual void changedName() override; 95 95 96 96 //! Shows the overlay with an detour to BaseObject::visibility_ … … 167 167 void setBackgroundColour(ColourValue colour); 168 168 169 virtual void changedVisibility() ;169 virtual void changedVisibility() override; 170 170 171 171 inline void setOwner(BaseObject* owner) … … 206 206 207 207 private: 208 void windowResized(unsigned int newWidth, unsigned int newHeight) ;208 void windowResized(unsigned int newWidth, unsigned int newHeight) override; 209 209 210 210 static unsigned int hudOverlayCounter_s; //!< Static counter for hud elements -
code/branches/cpp11_v2/src/orxonox/overlays/OverlayGroup.h
r10769 r10817 58 58 ~OverlayGroup(); 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 static void toggleVisibility(const std::string& name); … … 68 68 { return this->hudElements_; } 69 69 70 virtual void changedVisibility() ;70 virtual void changedVisibility() override; 71 71 72 72 void setOwner(BaseObject* owner); -
code/branches/cpp11_v2/src/orxonox/sound/AmbientSound.h
r9939 r10817 50 50 AmbientSound(); 51 51 52 void play() ;53 bool stop() ;54 void pause() ;52 void play() override; 53 bool stop() override; 54 void pause() override; 55 55 56 56 bool setAmbientSource(const std::string& source); … … 66 66 67 67 private: 68 void preDestroy() ;69 float getRealVolume() ;70 bool moodChanged(const std::string& mood) ;68 void preDestroy() override; 69 float getRealVolume() override; 70 bool moodChanged(const std::string& mood) override; 71 71 inline void ambientSourceChanged() 72 72 { this->setAmbientSource(this->ambientSource_); } -
code/branches/cpp11_v2/src/orxonox/sound/SoundManager.h
r10771 r10817 68 68 ~SoundManager(); 69 69 70 void preUpdate(const Clock& time) ;71 void postUpdate(const Clock& time) { /*no action*/ }70 void preUpdate(const Clock& time) override; 71 void postUpdate(const Clock& time) override { /*no action*/ } 72 72 void setConfigValues(); 73 73 -
code/branches/cpp11_v2/src/orxonox/sound/WorldAmbientSound.h
r9939 r10817 50 50 virtual ~WorldAmbientSound(); 51 51 52 void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;53 void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) ;52 void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 53 void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override; 54 54 55 virtual void changedActivity() ;55 virtual void changedActivity() override; 56 56 57 57 void play(); -
code/branches/cpp11_v2/src/orxonox/sound/WorldSound.h
r9667 r10817 47 47 WorldSound(Context* context); 48 48 49 void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;50 void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) ;51 void changedActivity() ;49 void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 50 void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override; 51 void changedActivity() override; 52 52 53 void tick(float dt) ;53 void tick(float dt) override; 54 54 55 55 protected: … … 58 58 private: 59 59 void registerVariables(); 60 void initialiseSource() ;61 float getRealVolume() ;60 void initialiseSource() override; 61 float getRealVolume() override; 62 62 }; 63 63 } -
code/branches/cpp11_v2/src/orxonox/weaponsystem/DefaultWeaponmodeLink.h
r9667 r10817 42 42 virtual ~DefaultWeaponmodeLink(); 43 43 44 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;44 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 45 45 46 46 inline void setFiremode(const unsigned int firemode) -
code/branches/cpp11_v2/src/orxonox/weaponsystem/Weapon.h
r10650 r10817 50 50 virtual ~Weapon(); 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 void fire(unsigned int mode); -
code/branches/cpp11_v2/src/orxonox/weaponsystem/WeaponMode.h
r10650 r10817 51 51 virtual ~WeaponMode(); 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 bool fire(float* reloadTime); -
code/branches/cpp11_v2/src/orxonox/weaponsystem/WeaponPack.h
r9667 r10817 44 44 virtual ~WeaponPack(); 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 fire(unsigned int weaponmode); -
code/branches/cpp11_v2/src/orxonox/weaponsystem/WeaponSet.h
r9667 r10817 44 44 virtual ~WeaponSet(); 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 fire(); -
code/branches/cpp11_v2/src/orxonox/weaponsystem/WeaponSlot.h
r10768 r10817 62 62 virtual ~WeaponSlot(); 63 63 64 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;64 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 65 65 66 66 void attachWeapon(Weapon * weapon); -
code/branches/cpp11_v2/src/orxonox/worldentities/CameraPosition.h
r9667 r10817 41 41 virtual ~CameraPosition(); 42 42 43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 44 44 45 45 inline void setDrag(bool bDrag) -
code/branches/cpp11_v2/src/orxonox/worldentities/ControllableEntity.h
r10769 r10817 54 54 virtual ~ControllableEntity(); 55 55 56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;57 virtual void tick(float dt) ;56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 57 virtual void tick(float dt) override; 58 58 void setConfigValues(); 59 59 … … 141 141 using MobileEntity::setAngularVelocity; 142 142 143 void setPosition(const Vector3& position) ;144 void setOrientation(const Quaternion& orientation) ;145 void setVelocity(const Vector3& velocity) ;146 void setAngularVelocity(const Vector3& velocity) ;143 void setPosition(const Vector3& position) override; 144 void setOrientation(const Quaternion& orientation) override; 145 void setVelocity(const Vector3& velocity) override; 146 void setAngularVelocity(const Vector3& velocity) override; 147 147 148 148 inline bool hasLocalController() const … … 177 177 178 178 protected: 179 virtual void preDestroy() ;179 virtual void preDestroy() override; 180 180 181 181 virtual void setPlayer(PlayerInfo* player); // don't call this directly, use friend class PlayerInfo instead … … 184 184 virtual void startLocalHumanControl(); 185 185 virtual void stopLocalHumanControl(); 186 virtual void parentChanged() ;186 virtual void parentChanged() override; 187 187 188 188 inline void setHudTemplate(const std::string& name) … … 214 214 215 215 // Bullet btMotionState related 216 void setWorldTransform(const btTransform& worldTrans) ;216 void setWorldTransform(const btTransform& worldTrans) override; 217 217 218 218 unsigned int server_overwrite_; -
code/branches/cpp11_v2/src/orxonox/worldentities/Drone.h
r9667 r10817 50 50 virtual ~Drone(); 51 51 52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a Drone through XML.53 virtual void tick(float dt) ; //!< Defines which actions the Drone has to take in each tick.52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a Drone through XML. 53 virtual void tick(float dt) override; //!< Defines which actions the Drone has to take in each tick. 54 54 55 55 56 virtual void moveFrontBack(const Vector2& value) ;57 virtual void moveRightLeft(const Vector2& value) ;58 virtual void moveUpDown(const Vector2& value) ;56 virtual void moveFrontBack(const Vector2& value) override; 57 virtual void moveRightLeft(const Vector2& value) override; 58 virtual void moveUpDown(const Vector2& value) override; 59 59 60 virtual void rotateYaw(const Vector2& value) ;61 virtual void rotatePitch(const Vector2& value) ;62 virtual void rotateRoll(const Vector2& value) ;60 virtual void rotateYaw(const Vector2& value) override; 61 virtual void rotatePitch(const Vector2& value) override; 62 virtual void rotateRoll(const Vector2& value) override; 63 63 64 64 /** -
code/branches/cpp11_v2/src/orxonox/worldentities/EffectContainer.h
r9667 r10817 43 43 virtual ~EffectContainer(); 44 44 45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 46 46 47 47 void setLuaState(LuaState* state, const std::string& functionName); -
code/branches/cpp11_v2/src/orxonox/worldentities/ExplosionChunk.h
r9667 r10817 43 43 virtual ~ExplosionChunk(); 44 44 45 virtual void tick(float dt) ;45 virtual void tick(float dt) override; 46 46 47 47 inline void setLOD(LODParticle::Value level) -
code/branches/cpp11_v2/src/orxonox/worldentities/MobileEntity.h
r10437 r10817 55 55 virtual ~MobileEntity(); 56 56 57 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;58 virtual void tick(float dt) ;57 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 58 virtual void tick(float dt) override; 59 59 60 virtual void setPosition(const Vector3& position) ;61 virtual void setOrientation(const Quaternion& orientation) ;60 virtual void setPosition(const Vector3& position) override; 61 virtual void setOrientation(const Quaternion& orientation) override; 62 62 63 63 virtual void setVelocity(const Vector3& velocity); 64 64 inline void setVelocity(float x, float y, float z) 65 65 { this->setVelocity(Vector3(x, y, z)); } 66 inline const Vector3& getVelocity() const 66 inline const Vector3& getVelocity() const override 67 67 { return this->linearVelocity_; } 68 68 /** … … 108 108 protected: 109 109 // Bullet btMotionState related 110 virtual void setWorldTransform(const btTransform& worldTrans) ;111 void getWorldTransform(btTransform& worldTrans) const ;110 virtual void setWorldTransform(const btTransform& worldTrans) override; 111 void getWorldTransform(btTransform& worldTrans) const override; 112 112 113 113 Vector3 linearAcceleration_; … … 117 117 118 118 private: 119 virtual bool isCollisionTypeLegal(WorldEntity::CollisionType type) const ;119 virtual bool isCollisionTypeLegal(WorldEntity::CollisionType type) const override; 120 120 }; 121 121 } -
code/branches/cpp11_v2/src/orxonox/worldentities/MovableEntity.h
r10216 r10817 46 46 virtual ~MovableEntity(); 47 47 48 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;49 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) ;48 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 49 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) override; 50 50 51 51 using WorldEntity::setPosition; 52 52 using WorldEntity::setOrientation; 53 53 54 inline void setPosition(const Vector3& position) 54 inline void setPosition(const Vector3& position) override 55 55 { MobileEntity::setPosition(position); this->overwrite_position_ = this->getPosition(); } 56 inline void setOrientation(const Quaternion& orientation) 56 inline void setOrientation(const Quaternion& orientation) override 57 57 { MobileEntity::setOrientation(orientation); this->overwrite_orientation_ = this->getOrientation(); } 58 58 … … 79 79 private: 80 80 void registerVariables(); 81 void clientConnected(unsigned int clientID) ;82 void clientDisconnected(unsigned int clientID) ;81 void clientConnected(unsigned int clientID) override; 82 void clientDisconnected(unsigned int clientID) override; 83 83 void resynchronize(); 84 84 -
code/branches/cpp11_v2/src/orxonox/worldentities/SpawnPoint.h
r9667 r10817 44 44 virtual ~SpawnPoint() {} 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 inline void setSpawnClass(Identifier* identifier) -
code/branches/cpp11_v2/src/orxonox/worldentities/StaticEntity.h
r10437 r10817 55 55 using WorldEntity::setOrientation; 56 56 57 void setPosition(const Vector3& position) ;58 void setOrientation(const Quaternion& orientation) ;57 void setPosition(const Vector3& position) override; 58 void setOrientation(const Quaternion& orientation) override; 59 59 60 60 private: 61 61 void registerVariables(); 62 bool isCollisionTypeLegal(CollisionType type) const ;62 bool isCollisionTypeLegal(CollisionType type) const override; 63 63 64 64 // network callbacks … … 69 69 70 70 // Bullet btMotionState related 71 void setWorldTransform(const btTransform& worldTrans) ;72 void getWorldTransform(btTransform& worldTrans) const ;71 void setWorldTransform(const btTransform& worldTrans) override; 72 void getWorldTransform(btTransform& worldTrans) const override; 73 73 }; 74 74 } -
code/branches/cpp11_v2/src/orxonox/worldentities/TeamSpawnPoint.h
r9667 r10817 43 43 virtual ~TeamSpawnPoint() {} 44 44 45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 46 46 47 47 void setTeamNumber(unsigned int team) -
code/branches/cpp11_v2/src/orxonox/worldentities/WorldEntity.h
r10726 r10817 96 96 virtual ~WorldEntity(); 97 97 98 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;98 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 99 99 100 100 inline const Ogre::SceneNode* getNode() const … … 108 108 static const Vector3 UP; 109 109 110 virtual void changedActivity(void) ;111 virtual void changedVisibility(void) ;110 virtual void changedActivity(void) override; 111 virtual void changedVisibility(void) override; 112 112 113 113 virtual void setPosition(const Vector3& position) = 0; -
code/branches/cpp11_v2/src/orxonox/worldentities/pawns/Pawn.h
r10768 r10817 61 61 virtual ~Pawn(); 62 62 63 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;64 virtual void tick(float dt) ;63 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 64 virtual void tick(float dt) override; 65 65 66 66 inline bool isAlive() const … … 143 143 virtual void kill(); 144 144 145 virtual void fired(unsigned int firemode) ;146 virtual void reload() ;145 virtual void fired(unsigned int firemode) override; 146 virtual void reload() override; 147 147 virtual void postSpawn(); 148 148 … … 179 179 180 180 181 virtual void startLocalHumanControl() ;181 virtual void startLocalHumanControl() override; 182 182 183 183 void setAimPosition( Vector3 position ) … … 186 186 { return this->aimPosition_; } 187 187 188 virtual const Vector3& getCarrierPosition(void) const 188 virtual const Vector3& getCarrierPosition(void) const override 189 189 { return this->getWorldPosition(); }; 190 190 191 virtual void changedVisibility() ;191 virtual void changedVisibility() override; 192 192 193 193 void setExplosionSound(const std::string& engineSound); … … 195 195 196 196 protected: 197 virtual void preDestroy() ;198 199 virtual void setPlayer(PlayerInfo* player) ;200 virtual void removePlayer() ;197 virtual void preDestroy() override; 198 199 virtual void setPlayer(PlayerInfo* player) override; 200 virtual void removePlayer() override; 201 201 202 202 virtual void death(); … … 212 212 bool bAlive_; 213 213 214 virtual std::vector<PickupCarrier*>* getCarrierChildren(void) const 214 virtual std::vector<PickupCarrier*>* getCarrierChildren(void) const override 215 215 { return new std::vector<PickupCarrier*>(); } 216 virtual PickupCarrier* getCarrierParent(void) const 216 virtual PickupCarrier* getCarrierParent(void) const override 217 217 { return nullptr; } 218 218
Note: See TracChangeset
for help on using the changeset viewer.