This class is the engine of the program. It encapsulates all the methods to do with managing scores, commands and player states(dead/alive).
Operator.h@0:3097759acb02, 2017-04-12 (annotated)
- Committer:
- domkay97
- Date:
- Wed Apr 12 13:53:10 2017 +0000
- Revision:
- 0:3097759acb02
- Child:
- 1:0f98beb0993b
Tidying up, no function change
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
domkay97 | 0:3097759acb02 | 1 | #ifndef OPERATOR_H |
domkay97 | 0:3097759acb02 | 2 | #define OPERATOR_H |
domkay97 | 0:3097759acb02 | 3 | |
domkay97 | 0:3097759acb02 | 4 | #include "mbed.h" |
domkay97 | 0:3097759acb02 | 5 | #include "N5110.h" |
domkay97 | 0:3097759acb02 | 6 | #include "Display.h" |
domkay97 | 0:3097759acb02 | 7 | #include "Gamepad.h" |
domkay97 | 0:3097759acb02 | 8 | |
domkay97 | 0:3097759acb02 | 9 | class Operator |
domkay97 | 0:3097759acb02 | 10 | { |
domkay97 | 0:3097759acb02 | 11 | |
domkay97 | 0:3097759acb02 | 12 | public: |
domkay97 | 0:3097759acb02 | 13 | Operator(); |
domkay97 | 0:3097759acb02 | 14 | ~Operator(); |
domkay97 | 0:3097759acb02 | 15 | |
domkay97 | 0:3097759acb02 | 16 | |
domkay97 | 0:3097759acb02 | 17 | void check(N5110 &lcd); |
domkay97 | 0:3097759acb02 | 18 | int read_input(Gamepad &pad); |
domkay97 | 0:3097759acb02 | 19 | int read_instruction(Display &display); |
domkay97 | 0:3097759acb02 | 20 | void init(); |
domkay97 | 0:3097759acb02 | 21 | void prnt(N5110 &lcd); |
domkay97 | 0:3097759acb02 | 22 | private: |
domkay97 | 0:3097759acb02 | 23 | void update(Gamepad &pad); |
domkay97 | 0:3097759acb02 | 24 | |
domkay97 | 0:3097759acb02 | 25 | }; |
domkay97 | 0:3097759acb02 | 26 | |
domkay97 | 0:3097759acb02 | 27 | #endif |