예제 #1
0
 // Checks if this player won the last complete round
 private bool WonLastRound()
 {
     // Player's side must match player that caused result
     if (manager.ResultWasTie())
     {
         return(false);
     }
     else
     {
         return((manager.LeftPlayerCausedResult()) ? leftSamurai : !leftSamurai);
     }
 }
예제 #2
0
 // Returns the display name of the player that caused the given result
 private string GetPlayerString(bool roundWon)
 {
     // Get the players name depending if the left or right player caused the result
     return((manager.LeftPlayerCausedResult())
                     ? manager.LeftSamurai.GetPlayerName()
                             : manager.RightSamurai.GetPlayerName());
 }