Snake vs Block Game to be run upon K64F.

Dependencies:   mbed

Revision:
79:35cb65c52d25
Parent:
71:4bd2b27693f3
Child:
81:4c1641e10dcd
--- a/GameEngine/SnakevsBlock/SnakevsBlock.h	Sun May 05 17:22:48 2019 +0000
+++ b/GameEngine/SnakevsBlock/SnakevsBlock.h	Sun May 05 23:48:57 2019 +0000
@@ -6,7 +6,7 @@
 #include "FXOS8700CQ.h"
 #include "Gamepad.h"
 #include "Snake.h"
-#include "LengthCalc.h"
+#include "LengthManager.h"
 #include "WinLoose.h"
 #include "SnakeFood.h"
 #include "Blocks.h"
@@ -94,19 +94,19 @@
     *
     *   This function automatically detects each combination of collision in the y postion.
     */
-    void CheckSnakeFoodYCollision(Gamepad &pad);
+    void CheckSnakeFoodYCollision(Gamepad &pad, int food_sr);
 
     /** Check Snake Food X Collision
     *
     *   This function automatically detects each combination of collision in the x postion.
     */
-    void CheckSnakeFoodXCollision(Gamepad &pad, int y);
+    void CheckSnakeFoodXCollision(Gamepad &pad, int food_sr);
 
     /** Implement Snake Food Collision
     *
     *   This function automatically detects which food we are interacting with and increases the snake length accordingly.
     */
-    void ImplementSnakeFoodCollision(Gamepad &pad, int x, int y);
+    void ImplementSnakeFoodCollision(Gamepad &pad, int food_sr);
 
     /** Check for Snake and Block collision
     *
@@ -160,7 +160,7 @@
     *
     *  checks if the colliding wall is on east side or west side and then calls StopX_AxisMotion(length,i) to carry out the required task.
     */
-    void CheckSnakeBlockSidesEastWestCollision(int b_x_combination, int i);
+    void CheckSnakeBlockSidesEastWestCollision(int X, int i);
 
     /** Make Virtual Length Max Ten
     *
@@ -177,7 +177,7 @@
 
     //OBJECT DECLARATIONS.
     Snake _s;
-    LengthCalc _l;
+    LengthManager _l;
     WinLoose _wl;
     SnakeFood _f;
     SnakeFood _ff;