testing documentation
Dependencies: mbed ll16j23s_test_docs
Food/Food.h@9:0571880085cc, 2020-05-25 (annotated)
- Committer:
- JoeShotton
- Date:
- Mon May 25 20:31:52 2020 +0000
- Revision:
- 9:0571880085cc
- Parent:
- 8:bcc3403d7e79
- Child:
- 10:a2d643b3c782
Post death menus partially implemented, mostly fixed food location issues and issues with tail display
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 | 9:0571880085cc | 8 | #include "Map.h" |
JoeShotton | 3:fcd6d70e9694 | 9 | |
JoeShotton | 3:fcd6d70e9694 | 10 | class Food |
JoeShotton | 3:fcd6d70e9694 | 11 | { |
JoeShotton | 5:06fa7674622a | 12 | |
JoeShotton | 3:fcd6d70e9694 | 13 | public: |
JoeShotton | 3:fcd6d70e9694 | 14 | |
JoeShotton | 3:fcd6d70e9694 | 15 | Food(); |
JoeShotton | 3:fcd6d70e9694 | 16 | ~Food(); |
JoeShotton | 3:fcd6d70e9694 | 17 | |
JoeShotton | 5:06fa7674622a | 18 | void init(FXOS8700CQ &mag); |
JoeShotton | 8:bcc3403d7e79 | 19 | bool rand_pos(Gamepad &pad, N5110 &lcd); |
JoeShotton | 4:ea3fa51c4386 | 20 | void draw(N5110 &lcd, int &_frame); |
JoeShotton | 9:0571880085cc | 21 | void run(N5110 &lcd); |
JoeShotton | 3:fcd6d70e9694 | 22 | |
JoeShotton | 3:fcd6d70e9694 | 23 | int _x; |
JoeShotton | 3:fcd6d70e9694 | 24 | int _y; |
JoeShotton | 4:ea3fa51c4386 | 25 | |
JoeShotton | 4:ea3fa51c4386 | 26 | private: |
JoeShotton | 4:ea3fa51c4386 | 27 | int _frame; |
JoeShotton | 5:06fa7674622a | 28 | float _values; |
JoeShotton | 5:06fa7674622a | 29 | float _seed; |
JoeShotton | 5:06fa7674622a | 30 | |
JoeShotton | 3:fcd6d70e9694 | 31 | }; |
JoeShotton | 3:fcd6d70e9694 | 32 | #endif |