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.
Food Class Reference
#include <Food.h>
Public Member Functions | |
| Food () | |
| Constructor. | |
| ~Food () | |
| Destructor. | |
| void | init (int x, int y) |
| Initialisation function. | |
| int | getX () |
| Gets the current X coordinate of the food. | |
| int | getY () |
| Gets the current Y coordinate of the food. | |
| void | random () |
| Randomises the current location of the food. | |
Detailed Description
The Food class.
Stores the position of the food to be eaten and randomises its location
- Date:
- May, 2018
Definition at line 12 of file Food.h.
Constructor & Destructor Documentation
Member Function Documentation
| int getX | ( | ) |
| int getY | ( | ) |
| void init | ( | int | x, |
| int | y | ||
| ) |
Generated on Sun Jul 17 2022 04:24:16 by
1.7.2