ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el18s2a_2

Dependencies:   mbed

Revision:
12:8eb40a18f15d
Parent:
11:ba20e1b516a1
Child:
13:c20acb3b1adf
--- a/SnakeEngine/SnakeEngine.h	Fri Jun 05 19:42:34 2020 +0000
+++ b/SnakeEngine/SnakeEngine.h	Fri Jun 05 20:47:43 2020 +0000
@@ -26,9 +26,9 @@
 
     void init(int apple_size, int snake_speed, int snake_score);
     void read_input(Gamepad &pad);  //Allows us to read the input from the thumbstick
-    void update(Gamepad &pad);      //Allows us to update the gamepad 
+    void update(Gamepad &pad, N5110 &lcd);      //Allows us to update the gamepad 
     void draw(N5110 &lcd);          //Allows us to draw on the screen
-    
+    void dead(N5110 &lcd, Gamepad &pad); // The snake is DEAD :(
 private:
 
     void print_score(N5110 &lcd);
@@ -40,11 +40,14 @@
     int _apple_size;  //Apple size is defined and taken from main.cpp
     int _snake_speed; //Stores the speed the snake goes
     int _snake_score; //Stores the score
+    bool _dead;
     
     Snake _s;   //Allows us to use the Snake 
     Apple _a;   //Allows us to use the Apple 
     Direction _d; //Direction
     float _mag;   //Magnitude
+    
+
 
 };