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: Ball/Ball.h
- Revision:
- 29:42651f87522b
- Parent:
- 23:61fa82f76808
- Child:
- 37:de1f584bce71
--- a/Ball/Ball.h Thu Apr 25 16:26:34 2019 +0000
+++ b/Ball/Ball.h Sat Apr 27 12:50:30 2019 +0000
@@ -23,6 +23,7 @@
Vector2D get_velocity();
Vector2D get_position();
int get_radius();
+ int get_ball_speed();
//mutator methods
void set_ball_speed(int ball_speed); //this is a constant multiplier for the ball velocity in both axes
void set_velocity(Vector2D vel); //this is used to set the velocity at one specific instant in the code