Snake vs Block Game to be run upon K64F.

Dependencies:   mbed

Revision:
83:329da564799a
Parent:
49:441c32f6603e
Child:
84:9950d561fdf8
--- a/MenuClasses/Stats/Stats.h	Mon May 06 10:49:50 2019 +0000
+++ b/MenuClasses/Stats/Stats.h	Mon May 06 14:28:35 2019 +0000
@@ -13,32 +13,34 @@
     Stats();
     ~Stats();
     
+    /** Initialise Stats
+    *
+    *   This function passes the pointers to the stats class so that it can control the screen and the gamepad.
+    */
+    void init(N5110 *lcd, Gamepad *pad);
+    
     /** Stats Display
     *
     *   This function is used to configure stats.
     */
-    
-    void StatsDisplay(N5110 &lcd, Gamepad &pad);
+    void StatsDisplay();
     
     /** write
     *
     *   This function is used to write to the file
     */
-    
     void write(int level, SDFileSystem &sd);
     
     /** Read
     *
     *   This function is used to read from the file
     */
-    
     void read(SDFileSystem &sd);
     
     /** delete file
     *
     *   This function allows us to delete the file
     */
-
     void delete_file(char filename[]);
     
     
@@ -49,6 +51,11 @@
     int _current_level;
     int _top_level;
     
+    //Pointer to the game pad object pad.
+    Gamepad *_pad;
+    //Pointer to the N5110 object lcd.
+    N5110 *_lcd;
+    
 
 };
 #endif
\ No newline at end of file