![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Owen Cavender 201159294
GameEngine.h@10:ee781d18e0f6, 2020-05-28 (annotated)
- Committer:
- el17oc
- Date:
- Thu May 28 20:58:49 2020 +0000
- Revision:
- 10:ee781d18e0f6
- Parent:
- 9:a69a6a06dddf
- Child:
- 12:60c856354406
kkk
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
el17oc | 8:997f90c88246 | 1 | #ifndef GAMEENGINE_H |
el17oc | 8:997f90c88246 | 2 | #define GAMEENGINE_H |
el17oc | 8:997f90c88246 | 3 | |
el17oc | 8:997f90c88246 | 4 | #include "mbed.h" |
el17oc | 8:997f90c88246 | 5 | #include "N5110.h" |
el17oc | 8:997f90c88246 | 6 | #include "Gamepad.h" |
el17oc | 8:997f90c88246 | 7 | #include "snake.h" |
el17oc | 8:997f90c88246 | 8 | |
el17oc | 8:997f90c88246 | 9 | |
el17oc | 8:997f90c88246 | 10 | |
el17oc | 8:997f90c88246 | 11 | class GameEngine |
el17oc | 8:997f90c88246 | 12 | { |
el17oc | 8:997f90c88246 | 13 | |
el17oc | 8:997f90c88246 | 14 | |
el17oc | 8:997f90c88246 | 15 | public: |
el17oc | 8:997f90c88246 | 16 | GameEngine(); |
el17oc | 8:997f90c88246 | 17 | ~GameEngine(); |
el17oc | 8:997f90c88246 | 18 | |
el17oc | 8:997f90c88246 | 19 | |
el17oc | 9:a69a6a06dddf | 20 | void print_scores(N5110 &lcd, Snake &snake); |
el17oc | 9:a69a6a06dddf | 21 | void get_LEDs(Gamepad &pad, Snake &snake); |
el17oc | 10:ee781d18e0f6 | 22 | |
el17oc | 8:997f90c88246 | 23 | |
el17oc | 8:997f90c88246 | 24 | private: |
el17oc | 8:997f90c88246 | 25 | |
el17oc | 8:997f90c88246 | 26 | float _realtime; |
el17oc | 8:997f90c88246 | 27 | int Reset_value; |
el17oc | 8:997f90c88246 | 28 | float _display_time; |
el17oc | 8:997f90c88246 | 29 | }; |
el17oc | 8:997f90c88246 | 30 | |
el17oc | 8:997f90c88246 | 31 | |
el17oc | 8:997f90c88246 | 32 | #endif |
el17oc | 8:997f90c88246 | 33 | |
el17oc | 8:997f90c88246 | 34 | |
el17oc | 8:997f90c88246 | 35 | |
el17oc | 8:997f90c88246 | 36 | |
el17oc | 8:997f90c88246 | 37 | |
el17oc | 8:997f90c88246 | 38 |