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:
13:1684970587ce
Parent:
12:bdaf4e1d615e
diff -r bdaf4e1d615e -r 1684970587ce Operator.h
--- a/Operator.h	Tue May 02 14:02:32 2017 +0000
+++ b/Operator.h	Tue May 02 18:05:38 2017 +0000
@@ -21,7 +21,7 @@
 };
 
 /** Operator Class
-@brief This class encapsulates all the algorithms required for managing scores, commands and player states(dead/alive). 
+@brief This class is the engine of the program. It encapsulates all the methods to do with managing scores, commands and player states(dead/alive). 
 
 @author Dominic Kay
 
@@ -59,17 +59,17 @@
     *  @brief Method to check if both players are dead 
     *  @return true/false
     */
-    bool check_dead();
+    bool both_dead();
 
 /** Method performed when the user performs the RIGHT instruction on time, score is increased, lighting and sound performed.
     *  @param the player, Controller
     */
-    void correct(int next_player, Controller &ctrl);  
+    void correct(int current_player, Controller &ctrl);  
 
 /** Method performed when the user performs the WRONG instruction on time 
     *  @param the player, Controller
     */
-    void inCorrect(int next_player, Controller &ctrl);  
+    void inCorrect(int current_player, Controller &ctrl);  
 
 /** Method to set up array of Player strut 
     *  @param the number of players to set up
@@ -82,7 +82,7 @@
     void gameOver(Controller &ctrl, N5110 &lcd);
     
 /** 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);
+    int check_next_player(int current_player, N5110 &lcd, Controller &ctrl, Display display);
 
 private:  
     /** This method displays and assesses score and display a performace rating for user to see.