1

Dependencies:   mbed Gamepad N5110

Revision:
9:5f73221012bf
Parent:
8:cd73516e85b6
Child:
10:7cb79dbb351a
--- a/Food/Food.h	Sun May 05 12:11:52 2019 +0000
+++ b/Food/Food.h	Sun May 05 12:33:23 2019 +0000
@@ -7,10 +7,10 @@
 #include "Gamepad.h"
 
 
-/** Enum for Foodpos */
+/**Foodpos struct */
 struct Foodpos{
-    int x;  /**< Food X coordirate*/
-    int y;  /**< Food Y coordirate*/
+    int x;  /**< Food X coordinate*/
+    int y;  /**< Food Y coordinate*/
     
     };
 
@@ -36,17 +36,17 @@
             */
             void init();
             
-            /** draw Food
+            /** draw Food according to the food coordinate
              * @param the subclass of N5110(lcd) 
             */
             void drawfood(N5110 &lcd);
             
-            /** create food randomly 
+            /** create food on the map randomly 
             */
             void createfood();
             
-            /** get the coordinate of the Food
-            * @return  food x/y coordinate
+            /** Gets polar coordinates of the Food
+             * @returns a struct contains Food x coordinate and Food y coordinate
             */
             Foodpos returnPos();