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:
- 9:a81db6a703b7
- Parent:
- 7:a1a6bff238c1
- Child:
- 10:6c6e09023942
--- a/Ball/Ball.h Thu Apr 18 13:04:37 2019 +0000 +++ b/Ball/Ball.h Sun Apr 21 17:35:15 2019 +0000 @@ -29,6 +29,8 @@ void set_field(N5110 &lcd); void update_ball(int checkHit, Direction dir); int bowler_start(); + void draw_field(N5110 &lcd); + void reset(); private: Gamepad pad; @@ -37,10 +39,13 @@ int y; int position; }; + int fieldNumbers[10]; Bat bat; int ballHit; Vector2D _velocity; Fielder field[5]; + int direction_set; + Direction ball_direction; Direction _d; int bowled; int d;