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

Revision:
12:bdaf4e1d615e
Parent:
11:48190450b7e5
Child:
13:1684970587ce
diff -r 48190450b7e5 -r bdaf4e1d615e Operator.h
--- a/Operator.h	Mon May 01 17:04:21 2017 +0000
+++ b/Operator.h	Tue May 02 14:02:32 2017 +0000
@@ -42,9 +42,9 @@
 
 
  /**
-     * @brief generates a random interger to be used in the display class to represent an instruction
+     * @brief generates a random integer to be used in the display class to represent an instruction
      * @param Display, N5110
-     * @return void random interger
+     * @return random integer
      */
     int random_instruction(Display &display, N5110 &lcd);  
 
@@ -83,14 +83,14 @@
     
 /** Method performed to check which user it is and to swap after every ten actions*/
     int check_next_player(int next_player, N5110 &lcd, Controller &ctrl, Display display);
-    
+
 private:  
-    /** This methord displays and assesses score and display a performace rating for user to see.
+    /** This method displays and assesses score and display a performace rating for user to see.
     *  @param N5110, score
     */    
     void _assessment(N5110 &lcd, int score); 
  
-    /** This methord displays and assesses scores when multi-player
+    /** This method displays and assesses scores when multi-player
     *  @param N5110
     */
    void _multiResults(N5110 &lcd);