![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
testing documentation
Dependencies: mbed ll16j23s_test_docs
Food/Food.h@3:fcd6d70e9694, 2020-05-20 (annotated)
- Committer:
- JoeShotton
- Date:
- Wed May 20 21:25:40 2020 +0000
- Revision:
- 3:fcd6d70e9694
- Child:
- 4:ea3fa51c4386
test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JoeShotton | 3:fcd6d70e9694 | 1 | #ifndef FOOD_H |
JoeShotton | 3:fcd6d70e9694 | 2 | #define FOOD_H |
JoeShotton | 3:fcd6d70e9694 | 3 | |
JoeShotton | 3:fcd6d70e9694 | 4 | #include "mbed.h" |
JoeShotton | 3:fcd6d70e9694 | 5 | #include "N5110.h" |
JoeShotton | 3:fcd6d70e9694 | 6 | #include "Gamepad.h" |
JoeShotton | 3:fcd6d70e9694 | 7 | |
JoeShotton | 3:fcd6d70e9694 | 8 | class Food |
JoeShotton | 3:fcd6d70e9694 | 9 | { |
JoeShotton | 3:fcd6d70e9694 | 10 | public: |
JoeShotton | 3:fcd6d70e9694 | 11 | |
JoeShotton | 3:fcd6d70e9694 | 12 | Food(); |
JoeShotton | 3:fcd6d70e9694 | 13 | ~Food(); |
JoeShotton | 3:fcd6d70e9694 | 14 | |
JoeShotton | 3:fcd6d70e9694 | 15 | void init(); |
JoeShotton | 3:fcd6d70e9694 | 16 | Vector2D rand_pos(int cell_size); |
JoeShotton | 3:fcd6d70e9694 | 17 | void draw(N5110 &lcd, int frame); |
JoeShotton | 3:fcd6d70e9694 | 18 | /* |
JoeShotton | 3:fcd6d70e9694 | 19 | void update(Direction d,float mag); |
JoeShotton | 3:fcd6d70e9694 | 20 | void add_score(); |
JoeShotton | 3:fcd6d70e9694 | 21 | int get_score(); |
JoeShotton | 3:fcd6d70e9694 | 22 | */ |
JoeShotton | 3:fcd6d70e9694 | 23 | private: |
JoeShotton | 3:fcd6d70e9694 | 24 | |
JoeShotton | 3:fcd6d70e9694 | 25 | int _x; |
JoeShotton | 3:fcd6d70e9694 | 26 | int _y; |
JoeShotton | 3:fcd6d70e9694 | 27 | |
JoeShotton | 3:fcd6d70e9694 | 28 | }; |
JoeShotton | 3:fcd6d70e9694 | 29 | #endif |