wu weilong / Mbed 2 deprecated el18w2w

Dependencies:   mbed

Revision:
12:80e737144104
Parent:
11:357970a7a5a6
Child:
13:3eb4f8dddff1
--- a/element/element.h	Wed May 08 20:16:29 2019 +0000
+++ b/element/element.h	Wed May 08 21:03:33 2019 +0000
@@ -17,9 +17,15 @@
      element();
       /** Destructor */
     ~element();
-    /** Set the score
- * @param the value of the score (int)
- */
+  /** initialize the snake and the food  
+  * @param the value of the foodsize 
+  * @param the value of the x of coordinates of the food
+  * @param the value of the y of coordinates of the food
+  * @param the value of the x of coordinates of the snake
+  * @param the value of the y of coordinates of the snake
+  * @param the value of the snakelength
+  */
+  
     void init(int foodsize,int foodx,int foody,int snakex,int snakey,int n);
     Vector2D getfoodpos();
     Vector2D getsnakepos(int n);