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 ll16j23s_test_docs
Diff: Food/Food.h
- Revision:
- 10:a2d643b3c782
- Parent:
- 9:0571880085cc
- Child:
- 12:33a5cff31339
--- a/Food/Food.h Mon May 25 20:31:52 2020 +0000
+++ b/Food/Food.h Tue May 26 23:25:09 2020 +0000
@@ -5,7 +5,15 @@
#include "N5110.h"
#include "Gamepad.h"
#include "FXOS8700CQ.h"
-#include "Map.h"
+
+/** SnakeEngine Class
+@author Joseph Shotton
+@brief All functions that exclusively control the food
+@date May 2020
+@version V1.0
+*/
+
+
class Food
{
@@ -15,7 +23,7 @@
Food();
~Food();
- void init(FXOS8700CQ &mag);
+ void init(Gamepad &pad, N5110 &lcd, FXOS8700CQ &mag);
bool rand_pos(Gamepad &pad, N5110 &lcd);
void draw(N5110 &lcd, int &_frame);
void run(N5110 &lcd);
@@ -27,6 +35,5 @@
int _frame;
float _values;
float _seed;
-
};
#endif
\ No newline at end of file