コード例 #1
0
        public static void ListCommands(World world)
        {
            //List<String> stringList = new List<string>(DataStorage.legitimateCommands);

            //Console.WriteLine($"Commands are: {HelpfulMethods.TurnStringListIntoString(stringList)}");

            Console.WriteLine($"Commands are: {HelpfulMethods.TurnStringListIntoString(world.legitimateCommands)}.");
        }
コード例 #2
0
        public static void GetExits(World world)
        {
            Location      loc   = world.GetLocation(world.GetPlayer().GetLocationName());
            List <string> exits = loc.GetExits();


            Console.Write($"Exits are: {HelpfulMethods.TurnStringListIntoString(exits)}.");
        }
コード例 #3
0
 public static void ListNouns(World world)
 {
     Console.WriteLine($"Nouns are: {HelpfulMethods.TurnStringListIntoString(world.legitimateNouns)}.");
 }