ELEC2645 (2018/19) / Mbed 2 deprecated el18jz

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
jiaxinZHOU
Date:
Wed May 08 22:17:34 2019 +0000
Parent:
1:538386e72e40
Commit message:
q

Changed in this revision

Menus/Menu.h Show annotated file Show diff for this revision Revisions of this file
move/Move.h Show annotated file Show diff for this revision Revisions of this file
--- a/Menus/Menu.h	Wed May 08 22:10:38 2019 +0000
+++ b/Menus/Menu.h	Wed May 08 22:17:34 2019 +0000
@@ -5,8 +5,8 @@
 #include "N5110.h"
 #include "Gamepad.h"
 
-/** Move Class
-@brief Class for main engine for the snake game
+/** Menu Class
+@brief Class for settings and start game
 @author Zhou Jiaxin
 @date 8th May 2019
 */
--- a/move/Move.h	Wed May 08 22:10:38 2019 +0000
+++ b/move/Move.h	Wed May 08 22:17:34 2019 +0000
@@ -11,16 +11,18 @@
 @date 8th May 2019
 */
 
-
+/** Snakebody struct */
 struct SnakeBody{
-    char _xx[4000];
-    char _yy[4000];
-    char _dir;
+    char _xx[4000];/**< char for x coordinate for each bit of snake body*/
+    char _yy[4000];/**< char for x coordinate for each bit of snake body*/
+    char _dir;/**< char for direction of snake hesd*/
     
     };
+    
+/** Food struct */
 struct Food{
-    char a;
-    char b;
+    char a;/**< char for x coordinate for food position*/
+    char b;/**< char for y coordinate for food position*/
     
     };