Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: element/element.h
- 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);