![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
testing documentation
Dependencies: mbed ll16j23s_test_docs
Food/Food.h
- Committer:
- JoeShotton
- Date:
- 2020-05-26
- Revision:
- 10:a2d643b3c782
- Parent:
- 9:0571880085cc
- Child:
- 12:33a5cff31339
File content as of revision 10:a2d643b3c782:
#ifndef FOOD_H #define FOOD_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "FXOS8700CQ.h" /** SnakeEngine Class @author Joseph Shotton @brief All functions that exclusively control the food @date May 2020 @version V1.0 */ class Food { public: Food(); ~Food(); 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); int _x; int _y; private: int _frame; float _values; float _seed; }; #endif