Changeset 10817 for code/branches/cpp11_v2/src/modules/pong
- Timestamp:
- Nov 19, 2015, 11:40:28 AM (10 years ago)
- Location:
- code/branches/cpp11_v2/src/modules/pong
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
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 /**
Note: See TracChangeset
for help on using the changeset viewer.