Owen Cavender 201159294

Dependencies:   mbed Gamepad2

Revision:
14:7fb3c93343b6
Parent:
12:60c856354406
Child:
16:9500059ad5d8
diff -r b37dde18bfdc -r 7fb3c93343b6 snake.h
--- a/snake.h	Fri May 29 16:27:29 2020 +0000
+++ b/snake.h	Sat May 30 02:31:43 2020 +0000
@@ -24,63 +24,66 @@
     };
 
     void init();
-
-
-    void check_gameover(N5110 &lcd);
-    void apple_collected(N5110 &lcd, Gamepad &pad);
     void render_clear_tail(N5110 &lcd);
     void get_direction(Gamepad &pad);
     void move_snake();
-    void get_time(Timer &timer);
+    void apple_collected(N5110 &lcd, Gamepad &pad);
+    void check_gameover(N5110 &lcd);
     void render(N5110 &lcd);
-   // void print_display_time(N5110 &lcd);
-    
+    // void print_display_time(N5110 &lcd);
 
-    bool get_gameover();
-    int get_oldscore();
-    int get_score();
+
     Vector2D get_Snakehead();
     int set_reset_value();
     int get_reset_value();
     bool get_timer_reset();
     bool get_RST();
     int get_countdown();
-    void snake_isr();
-    void gameover_true(N5110 &lcd);
+
+    void gameover_true(N5110 &lcd, Gamepad &pad);
     void get_Apple_position(N5110 &lcd);
+    int get_score();
+
+private:
 
 
-private:
- 
-    
+    bool get_gameover();
+
+
+
     int _countdown;
     bool _gameover;
     Directions _direction;
-    int _oldscore;
     int _score;
- //   float _display_time;
+//   float _display_time;
     int _reset_apple;
     int _reset_value;
-    
+
 
 
     int _x0;
+    int _y0;
     int _x1;
+    int _y1;
     int _x2;
+    int _y2;
     int _x3;
+    int _y3;
     int _x4;
+    int _y4;
     int _x5;
+    int _y5;
+    int _x6;
+    int _y6;
+    int _x7;
+    int _y7;
 
-    int _y0;
-    int _y1;
-    int _y2;
-    int _y3;
-    int _y4;
-    int _y5;
-    
+
+
+
     int _apx;
     int _apy;
-    
+
 
 
 //Vector2D SK0;