This class is the engine of the program. It encapsulates all the methods to do with managing scores, commands and player states(dead/alive).

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?

UserRevisionLine numberNew contents of line
domkay97 0:3097759acb02 1 #include "Operator.h"
domkay97 0:3097759acb02 2
domkay97 0:3097759acb02 3 Operator::Operator()
domkay97 0:3097759acb02 4 {
domkay97 0:3097759acb02 5
domkay97 0:3097759acb02 6 }
domkay97 0:3097759acb02 7
domkay97 0:3097759acb02 8 Operator::~Operator()
domkay97 0:3097759acb02 9 {
domkay97 0:3097759acb02 10
domkay97 0:3097759acb02 11 }
domkay97 0:3097759acb02 12
domkay97 0:3097759acb02 13
domkay97 0:3097759acb02 14 void Operator::init()
domkay97 0:3097759acb02 15 {
domkay97 0:3097759acb02 16 }
domkay97 0:3097759acb02 17 int Operator::read_input(Gamepad &pad) {
domkay97 0:3097759acb02 18
domkay97 0:3097759acb02 19 return(pad.check_for_buttons());
domkay97 0:3097759acb02 20 }
domkay97 0:3097759acb02 21
domkay97 0:3097759acb02 22 int Operator::read_instruction(Display &display) {
domkay97 0:3097759acb02 23
domkay97 0:3097759acb02 24 return(display.calculateWait());
domkay97 0:3097759acb02 25
domkay97 0:3097759acb02 26 }
domkay97 0:3097759acb02 27
domkay97 0:3097759acb02 28 void Operator::prnt(N5110 &lcd)
domkay97 0:3097759acb02 29 {
domkay97 0:3097759acb02 30 lcd.printString("Hello, dom!",0,0);
domkay97 0:3097759acb02 31 lcd.refresh();
domkay97 0:3097759acb02 32 }