Example #1
0
 public static void MoveTo(string verb)
 {
     Move.LocationMoveNew(verb);
     LocationCurrent.CurrentLocation();
     if (Move.canMove == false)
     {
         Console.WriteLine("You can not go " + verb);
     }
 }
Example #2
0
        public static void PContinue(Player player)
        {
            string usersInput;
            bool   validAnswer = false;

            while (validAnswer == false)
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("You are a weakling");
                Console.ForegroundColor = ConsoleColor.Cyan;
                Console.WriteLine("Would you like to Continue?");
                Console.WriteLine("Yes, No, or Create");
                Console.Write("> ");
                usersInput = Console.ReadLine();
                Console.ForegroundColor = ConsoleColor.White;
                Console.WriteLine();

                if (usersInput.ToLower() == "no")
                {
                    Environment.Exit(0);
                }
                else if (usersInput.ToLower() == "yes")
                {
                    LocationCurrent.CurrentLocation();
                    break;
                }
                else if (usersInput.ToLower() == "create")
                {
                    Console.Clear(); // clear Console to keep clean
                    CreatePlayer.CreateAPlayer();
                    LocationCurrent.CurrentLocation();
                    break;
                }
                else
                {
                    Console.WriteLine("Enter a valid answer.");
                }
            }
        }
Example #3
0
 public static void Looking()
 {
     LocationCurrent.CurrentLocation();
 }