Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Paddle/Paddle.cpp
- Revision:
- 13:3585d2ea4ff4
- Parent:
- 12:b3ec47d606a5
--- a/Paddle/Paddle.cpp Thu May 09 11:41:58 2019 +0000
+++ b/Paddle/Paddle.cpp Thu May 09 11:55:47 2019 +0000
@@ -1,17 +1,14 @@
#include "Paddle.h"
-/** Constructor */
Paddle::Paddle()
{
reset(); // initial parameters of paddle
}
-/** Destructor - nothing happening here */
Paddle::~Paddle()
{
}
-/** Adds the joystick control for the paddle */
void Paddle::controlPaddle(Gamepad &pad)
{
// Sets the joystick as the paddle controller
@@ -19,7 +16,6 @@
}
-/** Determines the movement physics of the paddle */
void Paddle::move()
{
// Moving right
@@ -40,7 +36,6 @@
}
}
-/** Resets paddle's initial parameters when game is over / lost */
void Paddle::reset()
{
pos.x = WIDTH/2; // position of paddle on x-axis