![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
testing documentation
Dependencies: mbed ll16j23s_test_docs
Food/Food.h@10:a2d643b3c782, 2020-05-26 (annotated)
- Committer:
- JoeShotton
- Date:
- Tue May 26 23:25:09 2020 +0000
- Revision:
- 10:a2d643b3c782
- Parent:
- 9:0571880085cc
- Child:
- 12:33a5cff31339
Removed several bugs, started on thorough documentation
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 | 5:06fa7674622a | 7 | #include "FXOS8700CQ.h" |
JoeShotton | 10:a2d643b3c782 | 8 | |
JoeShotton | 10:a2d643b3c782 | 9 | /** SnakeEngine Class |
JoeShotton | 10:a2d643b3c782 | 10 | @author Joseph Shotton |
JoeShotton | 10:a2d643b3c782 | 11 | @brief All functions that exclusively control the food |
JoeShotton | 10:a2d643b3c782 | 12 | @date May 2020 |
JoeShotton | 10:a2d643b3c782 | 13 | @version V1.0 |
JoeShotton | 10:a2d643b3c782 | 14 | */ |
JoeShotton | 10:a2d643b3c782 | 15 | |
JoeShotton | 10:a2d643b3c782 | 16 | |
JoeShotton | 3:fcd6d70e9694 | 17 | |
JoeShotton | 3:fcd6d70e9694 | 18 | class Food |
JoeShotton | 3:fcd6d70e9694 | 19 | { |
JoeShotton | 5:06fa7674622a | 20 | |
JoeShotton | 3:fcd6d70e9694 | 21 | public: |
JoeShotton | 3:fcd6d70e9694 | 22 | |
JoeShotton | 3:fcd6d70e9694 | 23 | Food(); |
JoeShotton | 3:fcd6d70e9694 | 24 | ~Food(); |
JoeShotton | 3:fcd6d70e9694 | 25 | |
JoeShotton | 10:a2d643b3c782 | 26 | void init(Gamepad &pad, N5110 &lcd, FXOS8700CQ &mag); |
JoeShotton | 8:bcc3403d7e79 | 27 | bool rand_pos(Gamepad &pad, N5110 &lcd); |
JoeShotton | 4:ea3fa51c4386 | 28 | void draw(N5110 &lcd, int &_frame); |
JoeShotton | 9:0571880085cc | 29 | void run(N5110 &lcd); |
JoeShotton | 3:fcd6d70e9694 | 30 | |
JoeShotton | 3:fcd6d70e9694 | 31 | int _x; |
JoeShotton | 3:fcd6d70e9694 | 32 | int _y; |
JoeShotton | 4:ea3fa51c4386 | 33 | |
JoeShotton | 4:ea3fa51c4386 | 34 | private: |
JoeShotton | 4:ea3fa51c4386 | 35 | int _frame; |
JoeShotton | 5:06fa7674622a | 36 | float _values; |
JoeShotton | 5:06fa7674622a | 37 | float _seed; |
JoeShotton | 3:fcd6d70e9694 | 38 | }; |
JoeShotton | 3:fcd6d70e9694 | 39 | #endif |