예제 #1
0
 //Timer for countdown-related operations.
 private void countdownTimer_Tick(object sender, EventArgs e)
 {
     //Reduces the delay time of the AI.
     if (currentGame.CurrentPlayer == Game.Participant.AI)
     {
         currentGame.DelayCountdown();
     }
     if (currentGame.CurrentPlayer == Game.Participant.Player)
     {
         currentGame.PlayerTimerCountdown();
         UpdateTimer();
     }
 }