![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
testing documentation
Dependencies: mbed ll16j23s_test_docs
Food/Food.h
- Committer:
- JoeShotton
- Date:
- 2020-05-25
- Revision:
- 8:bcc3403d7e79
- Parent:
- 7:dd84e0fab346
- Child:
- 9:0571880085cc
File content as of revision 8:bcc3403d7e79:
#ifndef FOOD_H #define FOOD_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "FXOS8700CQ.h" class Food { public: Food(); ~Food(); void init(FXOS8700CQ &mag); bool rand_pos(Gamepad &pad, N5110 &lcd); void draw(N5110 &lcd, int &_frame); void snake_food_collision(); void do_food(N5110 &lcd); int _x; int _y; private: int _frame; float _values; float _seed; }; #endif