Exemple #1
0
 public static void PrintTheStats(BaseChorator person1, BaseChorator person2)
 {
     person1.PrintStats();
     Console.WriteLine("");
     person2.PrintStats();
     Console.WriteLine("");
 }
Exemple #2
0
        public static void FightTurn(BaseChorator hero, BaseChorator computer)
        {
            while (computer.Health > 0 && hero.Health > 0)
            {
                PrintTheStats(computer, hero);

                hero.YourTurn(hero.Action, computer);

                if (computer.Health > 0)
                {
                    computer.PrintStats();
                    IsCharactorDead(hero);
                }
            }

            Console.WriteLine("{0} was killed!", computer.Name);
            Console.ReadLine();
            Console.Clear();
        }