Esempio n. 1
0
 public void MakeCelebrateAndAngry(int hitter, bool celebrate)
 {
     if (hitter == 1)
     {
         if (celebrate)
         {
             _player1.Celebrate();
         }
         else
         {
             _player1.Angry();
         }
     }
     else if (_twoPlayers)
     {
         if (celebrate)
         {
             _player2.Celebrate();
         }
         else
         {
             _player2.Angry();
         }
     }
     else
     {
         if (celebrate)
         {
             _aiPlayer.Celebrate();
         }
         else
         {
             _aiPlayer.Angry();
         }
     }
 }