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.cpp

Committer:
domkay97
Date:
2017-04-12
Revision:
2:6eebea9a6a86
Parent:
1:0f98beb0993b
Child:
3:7213eee4c093

File content as of revision 2:6eebea9a6a86:

#include "Operator.h"

Operator::Operator()
{

}

Operator::~Operator()
{

}


void Operator::init()
{
} 
int Operator::read_input(Controller &pad) {
  
    return(pad.check_for_buttons()); 
} 


int Operator::random_instruction(Display &display, N5110 &lcd) { 
    int ran = rand() % 7 + 1;  
    display.display_instruction(lcd, ran); 
    return ran; 
    }