![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Adam Baker 201166301
Dependencies: mbed Gamepad N5110
BlockheadEngine/BlockheadEngine.h@35:7d69c0822ea9, 2019-05-03 (annotated)
- Committer:
- adambakerwa
- Date:
- Fri May 03 12:30:08 2019 +0000
- Revision:
- 35:7d69c0822ea9
- Parent:
- 34:911d7d05a8d2
- Child:
- 36:6f452777b9ce
safety comit before levels organising
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
adambakerwa | 25:230e4163cb6b | 1 | #ifndef BLOCKHEADENGINE_H |
adambakerwa | 25:230e4163cb6b | 2 | #define BLOCKHEADENGINE_H |
adambakerwa | 25:230e4163cb6b | 3 | |
adambakerwa | 25:230e4163cb6b | 4 | #include "mbed.h" |
adambakerwa | 25:230e4163cb6b | 5 | #include "Gamepad.h" |
adambakerwa | 25:230e4163cb6b | 6 | #include "N5110.h" |
adambakerwa | 25:230e4163cb6b | 7 | #include "Runner.h" |
adambakerwa | 25:230e4163cb6b | 8 | #include "Levels.h" |
adambakerwa | 25:230e4163cb6b | 9 | #include "Animation.h" |
adambakerwa | 25:230e4163cb6b | 10 | |
adambakerwa | 25:230e4163cb6b | 11 | |
adambakerwa | 25:230e4163cb6b | 12 | class BlockheadEngine |
adambakerwa | 25:230e4163cb6b | 13 | { |
adambakerwa | 25:230e4163cb6b | 14 | |
adambakerwa | 25:230e4163cb6b | 15 | public: |
adambakerwa | 25:230e4163cb6b | 16 | |
adambakerwa | 25:230e4163cb6b | 17 | BlockheadEngine(); |
adambakerwa | 25:230e4163cb6b | 18 | ~BlockheadEngine(); |
adambakerwa | 25:230e4163cb6b | 19 | |
adambakerwa | 26:3319ddd5111d | 20 | void init(); |
adambakerwa | 31:bf765e3961f1 | 21 | void continueInit(); |
adambakerwa | 25:230e4163cb6b | 22 | int playgame(N5110 &lcd, Gamepad &pad); |
adambakerwa | 25:230e4163cb6b | 23 | |
adambakerwa | 25:230e4163cb6b | 24 | private: |
adambakerwa | 25:230e4163cb6b | 25 | |
adambakerwa | 25:230e4163cb6b | 26 | Runner _runner; |
adambakerwa | 25:230e4163cb6b | 27 | Levels _lev; |
adambakerwa | 25:230e4163cb6b | 28 | |
adambakerwa | 25:230e4163cb6b | 29 | Pos _pos; |
adambakerwa | 25:230e4163cb6b | 30 | |
adambakerwa | 25:230e4163cb6b | 31 | |
adambakerwa | 25:230e4163cb6b | 32 | int _gameover; |
adambakerwa | 34:911d7d05a8d2 | 33 | int _level; |
adambakerwa | 25:230e4163cb6b | 34 | }; |
adambakerwa | 25:230e4163cb6b | 35 | |
adambakerwa | 25:230e4163cb6b | 36 | #endif |