ELEC2645 (2018/19) / Mbed 2 deprecated el18jz

Dependencies:   mbed

Revision:
0:07c4fef6c0af
Child:
1:538386e72e40
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/move/Move.h	Wed May 08 21:44:02 2019 +0000
@@ -0,0 +1,42 @@
+#ifndef MOVE_H
+#define MOVE_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+
+struct SnakeBody{
+    char _xx[4000];
+    char _yy[4000];
+    char _dir;
+    
+    };
+struct Food{
+    char a;
+    char b;
+    
+    };    
+
+class Move
+{
+public:
+
+    Move();
+    ~Move();
+    void initial();
+    void onlcd(N5110 &lcd);
+    void update(Gamepad &pad);
+    void updatebody();
+    void getfood();
+    void die(N5110 &lcd ,Gamepad &pad);
+    void eatfood();
+    
+private:
+
+    int _x;
+    int _y;
+    int _length;
+    Direction _d;
+
+};
+#endif
\ No newline at end of file