Esempio n. 1
0
 public void StartGame()
 {
     Console.Clear();
     player1 = FighterCreator(1);
     Console.Clear();
     player2 = FighterCreator(2);
     StartFight();
 }
Esempio n. 2
0
 private void DamageCalculator(BaseFighter one, BaseFighter another)
 {
     if (another.DodgeChance > rnd.Next(1, 101))
     {
         Console.WriteLine("{0} хотел ударить, но {1} увернулся от удара", one.Name, another.Name);
     }
     else
     {
         another.HealthPoints -= one.Kick();
     }
     if (another.DodgeChance > rnd.Next(25, 101))
     {
         Console.WriteLine("{0} попытался провести суперудар, но {1} увернулся", one.Name, another.Name);
     }
     else
     {
         another.HealthPoints -= one.UltAbilittyUsing();
     }
     Console.WriteLine();
 }