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:
- 114:280903dd7e06
- Parent:
- 111:4848c399fae0
- Child:
- 136:04a2724f90cf
--- a/Paddle/Paddle.cpp Wed May 08 04:00:00 2019 +0000
+++ b/Paddle/Paddle.cpp Wed May 08 13:08:55 2019 +0000
@@ -77,6 +77,11 @@
_lives--;
}
+void Paddle::inc_life() // increment the member variable _lives
+{
+ _lives++;
+}
+
void Paddle::reset_lives()
{
_lives = 6;