ELEC2645 (2018/19) / Mbed 2 deprecated el17szs

Dependencies:   mbed

Revision:
13:924891519a95
Parent:
12:954da4f4e565
Child:
14:122eaa3b7a50
--- a/Cricket/Cricket.h	Tue Apr 23 12:46:34 2019 +0000
+++ b/Cricket/Cricket.h	Tue Apr 23 14:35:39 2019 +0000
@@ -20,12 +20,15 @@
     void init();
     void draw(N5110 &lcd);
     void set_field(N5110 &lcd);
+    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, Direction dir);
+    void update_game(int checkHit,int loft_check, Direction dir);
     void play_game(N5110 &lcd,Gamepad &pad);
     void game(N5110 &lcd,Gamepad &pad);   
-    void set_init_positions(int x,int y, Direction direction,int no);
     void init_positions();
+    void reset();
+    int check_fielder(Direction dir);
 private:
     Ball ball;
     Bat bat;
@@ -49,6 +52,7 @@
     Direction ball_direction;
     int check_bowled;
     int init_field_counter;
+    int outfield_fielder;
     int fieldersCount;
     int new_round;
     int fieldNumbers[10];