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: Cricket/Cricket.h
- Revision:
- 19:e1ded5acb64a
- Parent:
- 18:a260ce8db9e7
- Child:
- 20:9d21599fe350
--- a/Cricket/Cricket.h Sat Apr 27 15:42:36 2019 +0000 +++ b/Cricket/Cricket.h Sat Apr 27 18:16:59 2019 +0000 @@ -24,16 +24,18 @@ void set_init_positions(int x,int y, Direction direction,int no); void set_ball_direction(Direction dir); void draw_field(N5110 &lcd); - void update_game(int checkHit,int loft_check, Direction dir,Gamepad &pad); + void update_game(int checkHit,int loft_check, Direction dir,Gamepad &pad,N5110 &lcd); void play_game(N5110 &lcd,Gamepad &pad); void update_scoreboard(int checkUpdate, int runs,Gamepad &pad); - void batsman_out(string messsage,Gamepad &pad); + void batsman_out(int option,Gamepad &pad, N5110 &lcd); void check_victory(N5110 &lcd); - void game(N5110 &lcd,Gamepad &pad); + void game(N5110 &lcd,Gamepad &pad); + void init_positions(); - void reset(); + void round_reset(); + void game_reset(); int check_fielder(Direction dir); - void check_ball_count(N5110 &lcd); + bool check_ball_count(N5110 &lcd); private: Ball ball; Bat bat;