ELEC2645 (2018/19) / Mbed 2 deprecated el17szs

Dependencies:   mbed

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;