Exemplo n.º 1
0
        internal Battle BattleFactory()
        {
            Console.WriteLine("what is the name of the battle?");
            var battle = _battleLogic.NewBattle(Console.ReadLine());

            if (battle.Id > 0)
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Battle exists! Leaving wizzard... ");
                Nav.ResetTextColor();
                Thread.Sleep(2000);
                return(null);
            }

            Console.WriteLine("What is the year of this Battle?(*Required: enter a valid year)");
            battle.Year = InputYear();
            return(_battleLogic.CreateBattle(battle));
        }