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: Ball/Ball.h
- Revision:
- 18:a260ce8db9e7
- Parent:
- 15:81a3aaf52647
- Child:
- 20:9d21599fe350
--- a/Ball/Ball.h Wed Apr 24 21:17:22 2019 +0000 +++ b/Ball/Ball.h Sat Apr 27 15:42:36 2019 +0000 @@ -25,10 +25,13 @@ /// accessors and mutators int ball_start(Gamepad &pad); void get_direction(Gamepad &pad); + int get_ball_count(); + void reset_ball_count(); //void update_ball(int checkHit, Direction dir); int update_ball(int expected_x,int expected_y); int bowler_start(Gamepad &pad); + void increment_ball_count(); private: Gamepad pad; @@ -41,6 +44,7 @@ int fieldNumbers[10]; Bat bat; int ballHit; + int _ball_count; Vector2D _velocity; Direction ball_direction; Direction _d;