Adam Baker 201166301
Dependencies: mbed Gamepad N5110
BlockheadEngine/BlockheadEngine.h@34:911d7d05a8d2, 2019-05-02 (annotated)
- Committer:
- adambakerwa
- Date:
- Thu May 02 13:22:38 2019 +0000
- Revision:
- 34:911d7d05a8d2
- Parent:
- 31:bf765e3961f1
- Child:
- 35:7d69c0822ea9
safety comit before reorganising code
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 | Move _move; |
adambakerwa | 25:230e4163cb6b | 30 | Pos _pos; |
adambakerwa | 25:230e4163cb6b | 31 | |
adambakerwa | 25:230e4163cb6b | 32 | |
adambakerwa | 25:230e4163cb6b | 33 | int _gameover; |
adambakerwa | 34:911d7d05a8d2 | 34 | int _level; |
adambakerwa | 25:230e4163cb6b | 35 | }; |
adambakerwa | 25:230e4163cb6b | 36 | |
adambakerwa | 25:230e4163cb6b | 37 | #endif |