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.
Dependencies: mbed
Food Class Reference
#include <Food.h>
Public Member Functions | |
| Food () | |
| Constructor. | |
| ~Food () | |
| Destructor. | |
| void | init (int x, int y) |
| Init function. | |
| int | xcoordinate () |
| Gets x coordinate of the food. | |
| int | ycoordinate () |
| Gets y coordinate of the food. | |
| void | random () |
| Generate the location of the food randomly. | |
Data Fields | |
| int | _x |
| the integer variables _x and _y | |
Detailed Description
The Food class.
generate a position of food randomly
- Date:
- May 2019
Definition at line 11 of file Food.h.
Constructor & Destructor Documentation
Member Function Documentation
| void init | ( | int | x, |
| int | y | ||
| ) |
| int xcoordinate | ( | ) |
| int ycoordinate | ( | ) |
Field Documentation
Generated on Fri Jul 15 2022 14:43:24 by
1.7.2