Snake vs Block Game to be run upon K64F.

Dependencies:   mbed

Revision:
79:35cb65c52d25
Child:
83:329da564799a
diff -r 10e5cc013806 -r 35cb65c52d25 GameEngine/LengthManager/LengthManager.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/GameEngine/LengthManager/LengthManager.h	Sun May 05 23:48:57 2019 +0000
@@ -0,0 +1,55 @@
+#ifndef LENGTHMANAGER_H
+#define LENGTHMANAGER_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+
+class LengthManager
+{
+public:
+
+    LengthManager();
+    ~LengthManager();
+
+    /** Initialise LengthManager
+    *
+    *   This function sets the initial length parameters.
+    */
+    void init();
+
+    /** Minus Length
+    *
+    *   This function decrements the length value by 1;.
+    */
+    void MinusLength();
+
+    /** Plus Length
+    *
+    *   This function increments the length by one.
+    */
+    void PlusLength();
+
+    /** Draw
+    *
+    *   This function draws the length on the screen.
+    */
+    void print_length_on_screen(N5110 &lcd);
+
+    /** get the length
+    *
+    *   This sends the current length value when called.
+    */
+    int _getLength();
+
+    /** Set the Length
+    *
+    *   This function obtains the length value to be altered.
+    */
+    void _setLength(int length);
+
+private:
+    int _length;
+
+};
+#endif
\ No newline at end of file