Example #1
0
        public static void GiantCharacter(out ICharacters character)
        {
            Giant gigant = new Giant();

            character = gigant;
        }
Example #2
0
        public static void HeroTypeInformation(ICharacters character)
        {
            Console.Clear();
            Console.WriteLine("1.Wizard");
            Console.WriteLine("2.Giant");
            Console.WriteLine("3.Archer");
            Console.WriteLine("4.Back");

            int choice = OnInputWork.ChoiceHandler();

            switch (choice)
            {
            case 1:
            {
                Wizard wizard = new Wizard();
                Console.WriteLine("              WIZARD");
                wizard.Picture();
                ChangeNumbersToPlus.Durability(wizard);
                ChangeNumbersToPlus.Intelligence(wizard);
                ChangeNumbersToPlus.Skill(wizard);
                ChangeNumbersToPlus.Strength(wizard);
upper:
                int choice2 = OnInputWork.ChoiceHandler();

                if (choice2 == 4)
                {
                    StartGame.HeroTypeInformation(character);
                }
                else
                {
                    Console.WriteLine("Write correct number!");
                    Thread.Sleep(750);
                    Console.Clear();
                    goto upper;
                }
                break;
            }

            case 2:
            {
                Giant giant = new Giant();
                Console.WriteLine("            GIANT");
                giant.Picture();
                ChangeNumbersToPlus.Durability(giant);
                ChangeNumbersToPlus.Intelligence(giant);
                ChangeNumbersToPlus.Skill(giant);
                ChangeNumbersToPlus.Strength(giant);

upper:


                int choice2 = OnInputWork.ChoiceHandler();

                if (choice2 == 4)
                {
                    StartGame.HeroTypeInformation(character);
                }
                else
                {
                    Console.WriteLine("Write correct number!");
                    Thread.Sleep(750);
                    Console.Clear();
                    goto upper;
                }
                break;
            }

            case 3:
            {
                Archer archer = new Archer();
                Console.WriteLine("              ARCHER");
                archer.Picture();
                ChangeNumbersToPlus.Durability(archer);
                ChangeNumbersToPlus.Intelligence(archer);
                ChangeNumbersToPlus.Skill(archer);
                ChangeNumbersToPlus.Strength(archer);


upper:
                int choice2 = OnInputWork.ChoiceHandler();

                if (choice2 == 4)
                {
                    StartGame.HeroTypeInformation(character);
                }
                else
                {
                    Console.WriteLine("Write correct number!");
                    Thread.Sleep(750);
                    Console.Clear();
                    goto upper;
                }

                break;
            }

            case 4:
            {
                Console.Clear();
                StartGame.CreatingCharacter(ref character);

                break;
            }

            default:
            {
                Console.Clear();
                Console.WriteLine("Wrong number try again");
                Thread.Sleep(750);
                Console.Clear();
                StartGame.HeroTypeInformation(character);
                break;
            }
            }
        }