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.
Dependencies: mbed
Diff: rec/rect.cpp
- Revision:
- 10:ef01b3076040
- Parent:
- 9:d217a636c18d
- Child:
- 13:7ad2072d63ac
diff -r d217a636c18d -r ef01b3076040 rec/rect.cpp --- a/rec/rect.cpp Thu Apr 19 23:07:14 2018 +0000 +++ b/rec/rect.cpp Sun Apr 22 23:34:39 2018 +0000 @@ -37,6 +37,14 @@ } } +void rect::add_score() +{ + rect_score++; +} +int rect::get_score() +{ + return rect_score; +} Vector2D rect::get_pos() { Vector2D p = {rect_x};