This class is the engine of the program. It encapsulates all the methods to do with managing scores, commands and player states(dead/alive).
Diff: Operator.h
- Revision:
- 1:0f98beb0993b
- Parent:
- 0:3097759acb02
- Child:
- 3:7213eee4c093
--- a/Operator.h Wed Apr 12 13:53:10 2017 +0000 +++ b/Operator.h Wed Apr 12 22:19:03 2017 +0000 @@ -4,7 +4,7 @@ #include "mbed.h" #include "N5110.h" #include "Display.h" -#include "Gamepad.h" +#include "Controller.h" class Operator { @@ -15,12 +15,12 @@ void check(N5110 &lcd); - int read_input(Gamepad &pad); - int read_instruction(Display &display); + int read_input(Controller &pad); + int random_instruction(Display &display, N5110 &lcd); void init(); void prnt(N5110 &lcd); private: - void update(Gamepad &pad); + void update(Controller &pad); };