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:
- 111:4848c399fae0
- Parent:
- 91:c01a736fb0d9
- Child:
- 114:280903dd7e06
--- a/Paddle/Paddle.cpp Wed May 08 01:57:25 2019 +0000
+++ b/Paddle/Paddle.cpp Wed May 08 02:50:07 2019 +0000
@@ -77,6 +77,11 @@
_lives--;
}
+void Paddle::reset_lives()
+{
+ _lives = 6;
+}
+
Vector2D Paddle::get_pos() // returns the vector of the paddle's current position
{
Vector2D p = {_x,_y};