
Zeyu Feng 201377605
Dependencies: mbed
On Minerva
Instruction/Instruction.h@18:93d050e7705d, 2020-05-21 (annotated)
- Committer:
- el19zf
- Date:
- Thu May 21 15:20:33 2020 +0000
- Revision:
- 18:93d050e7705d
- Child:
- 20:a36ab1560e73
build a Instruction class, and add it to menu
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
el19zf | 18:93d050e7705d | 1 | #ifndef INSTRUCTION_H |
el19zf | 18:93d050e7705d | 2 | #define INSTRUCTION_H |
el19zf | 18:93d050e7705d | 3 | |
el19zf | 18:93d050e7705d | 4 | #include "mbed.h" |
el19zf | 18:93d050e7705d | 5 | #include "Gamepad.h" |
el19zf | 18:93d050e7705d | 6 | #include "N5110.h" |
el19zf | 18:93d050e7705d | 7 | |
el19zf | 18:93d050e7705d | 8 | /** Instruction class |
el19zf | 18:93d050e7705d | 9 | *@brief create a instruction interface for game |
el19zf | 18:93d050e7705d | 10 | *@author Zeyu Feng |
el19zf | 18:93d050e7705d | 11 | *@10 MAY 2020 |
el19zf | 18:93d050e7705d | 12 | */ |
el19zf | 18:93d050e7705d | 13 | |
el19zf | 18:93d050e7705d | 14 | class Instruction{ |
el19zf | 18:93d050e7705d | 15 | public: |
el19zf | 18:93d050e7705d | 16 | /** Constructor */ |
el19zf | 18:93d050e7705d | 17 | Instruction(); |
el19zf | 18:93d050e7705d | 18 | |
el19zf | 18:93d050e7705d | 19 | /** Destructor */ |
el19zf | 18:93d050e7705d | 20 | ~Instruction(); |
el19zf | 18:93d050e7705d | 21 | |
el19zf | 18:93d050e7705d | 22 | void init(); |
el19zf | 18:93d050e7705d | 23 | |
el19zf | 18:93d050e7705d | 24 | void draw(N5110 &lcd,Gamepad &pad); |
el19zf | 18:93d050e7705d | 25 | |
el19zf | 18:93d050e7705d | 26 | private: |
el19zf | 18:93d050e7705d | 27 | |
el19zf | 18:93d050e7705d | 28 | int _draw_flag; |
el19zf | 18:93d050e7705d | 29 | |
el19zf | 18:93d050e7705d | 30 | Direction _d; |
el19zf | 18:93d050e7705d | 31 | |
el19zf | 18:93d050e7705d | 32 | }; |
el19zf | 18:93d050e7705d | 33 | |
el19zf | 18:93d050e7705d | 34 | #endif |