Snake vs Block Game to be run upon K64F.

Dependencies:   mbed

Revision:
49:441c32f6603e
Parent:
44:cd10d07ea1e5
--- a/SnakevsBlock/SnakevsBlock.h	Fri Apr 26 12:46:42 2019 +0000
+++ b/SnakevsBlock/SnakevsBlock.h	Fri Apr 26 17:16:22 2019 +0000
@@ -24,7 +24,7 @@
     *
     *   This function initialises the game machine.
     */
-    void init( );
+    void init();
     
     /** Reset Game Machine
     *
@@ -32,6 +32,12 @@
     */
     void reset( );
     
+    /** Initialise objects
+    *
+    *   This function initialises the objects that are used to functionalise the game.
+    */
+    void object_initialisations();
+    
     /** Read Input
     *
     *   This function obtains numeric data from the gamepads joystick.
@@ -42,13 +48,13 @@
     *
     *   This function contains the update functions of the other libraries used in the game.
     */
-    int update(Gamepad &pad);
+    int update(N5110 &lcd, Gamepad &pad, SDFileSystem &sd);
     
     /** Draw 
     *
     *   This function contains the draw functions of the other libraries used in the game.
     */
-    void draw(N5110 &lcd, Gamepad &pad, SDFileSystem &sd);
+    void draw(N5110 &lcd, Gamepad &pad);
     
     /** Get Position
     *
@@ -98,7 +104,7 @@
     SnakeFood _ff;
     SnakeFood _fff;
     Blocks _b;
-    Stats _statset;
+    Stats _Setstats;
     int _speed;
     int _length;
     Direction _d;