Exemplo n.º 1
0
 private static ICharacters Item(ref ICharacters character)
 {
     if (character.ListOfItems.Count != 0)
     {
         int i = 1;
         Console.WriteLine("Choose one of items below:");
         foreach (int item in character.ListOfItems)
         {
             Console.WriteLine(i + ": " + item + " HP");
             i++;
         }
         Console.WriteLine("");
         int Choice = OnInputWork.ChoiceHandler();
         if (Choice <= character.ListOfItems.Count)
         {
             character.HitPoints += character.ListOfItems[Choice - 1];
             character.ListOfItems.RemoveAt(Choice - 1);
         }
         else
         {
             Console.WriteLine("Wrong number! Try again");
         }
     }
     else
     {
         Console.WriteLine("You don't have any items!");
         Thread.Sleep(500);
         Console.Clear();
     }
     return(character);
 }
Exemplo n.º 2
0
        public static void Changes()
        {
            Console.Clear();
            Console.WriteLine("1.Change the graphics ");
            Console.WriteLine("2.Change difficulty level");
            Console.WriteLine("3.Back");

            int choice = OnInputWork.ChoiceHandler();

            switch (choice)
            {
            case 1:
            {
                Console.Clear();
                Graphics.ChangeGraphics();
                Console.Clear();
                Options.Changes();
                break;
            }

            case 2:
            {
                Console.Clear();
                DifficultyLevel.ChangeDifficulty();
                Console.Clear();
                Options.Changes();
                break;
            }

            case 3:
            {
                Console.Clear();
                GameInvocation.OptionsSelector();
                break;
            }

            default:
            {
                Console.Clear();
                Console.WriteLine("Wrong number try again");
                Thread.Sleep(750);
                Console.Clear();
                Options.Changes();
                break;
            }
            }
        }
Exemplo n.º 3
0
        public static void ChangeDifficulty()
        {
            Console.Clear();
            Console.WriteLine("Change difficulty level: ");
            Console.WriteLine("1. Easy");
            Console.WriteLine("2. Medium ");
            Console.WriteLine("3. Hard");
            Console.WriteLine("4. Back");

            int choice = OnInputWork.ChoiceHandler();

            switch (choice)
            {
            case 1:
            {
                Console.Clear();
                Console.WriteLine("Difficulty Changed to: Hard");
                Thread.Sleep(3000);
                Console.Clear();
                Options.Changes();
                break;
            }

            case 2:
            {
                Console.Clear();
                Console.WriteLine("Difficulty Changed to: Hard");
                Thread.Sleep(3000);
                Console.Clear();
                Options.Changes();
                break;
            }

            case 3:
            {
                Console.Clear();
                Console.WriteLine("Difficulty Changed to: Hard");
                Thread.Sleep(3000);
                Console.Clear();
                Options.Changes();
                break;
            }

            case 4:
            {
                Console.Clear();
                Options.Changes();
                break;
            }

            default:
            {
                Console.Clear();
                Console.WriteLine("Wrong number try again");
                Thread.Sleep(750);
                Console.Clear();
                Graphics.ChangeGraphics();
                break;
            }
            }
        }
Exemplo n.º 4
0
        public static void ChangeGraphics()
        {
            Console.Clear();
            Console.WriteLine("Change the graphics: ");
            Console.WriteLine("1. Minimum Quality");
            Console.WriteLine("2. Medium Quality");
            Console.WriteLine("3. Max Quality");
            Console.WriteLine("4. Back");

            int choice = OnInputWork.ChoiceHandler();

            switch (choice)
            {
            case 1:
            {
                Console.Clear();
                Console.WriteLine("Ehh.. so now you can see how good is your computer :) ");
                Thread.Sleep(3000);
                Console.Clear();
                Options.Changes();
                break;
            }

            case 2:
            {
                Console.Clear();
                Console.WriteLine("This graphics is too advanced for your computer :(");
upper:
                Console.WriteLine("1.Back and set another graphics");
                int choice2 = OnInputWork.ChoiceHandler();

                if (choice2 == 1)
                {
                    Graphics.ChangeGraphics();
                }
                else
                {
                    Console.WriteLine("Write correct number!");
                    Thread.Sleep(750);
                    Console.Clear();
                    goto upper;
                }
                break;
            }

            case 3:
            {
                Console.Clear();
                Console.WriteLine("Your Computer is too shity :(");
upper:
                Console.WriteLine("1.Back and set another graphics");
                int choice2 = OnInputWork.ChoiceHandler();

                if (choice2 == 1)
                {
                    Graphics.ChangeGraphics();
                }
                else
                {
                    Console.WriteLine("Write correct number!");
                    Thread.Sleep(750);
                    Console.Clear();
                    goto upper;
                }
                break;
            }

            case 4:
            {
                Console.Clear();
                GameInvocation.OptionsSelector();
                break;
            }

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