Esempio n. 1
0
        public static void CheckNonFightCases(string [] _words)
        {
            words = _words;
            Console.WriteLine("Nonfight cases");
            Room setup = Room.createData();

            switch (_words[0])
            {
            case "h":
            case "help":
                Help();
                break;

            case "d":
            case "drop":
                Arm(words[1]);
                break;

            case "l":
            case "look":
                Look();
                break;

            case "i":
            case "inventory":
                //displayWholeInventory();
                break;

            case "t":
            case "take":
                Take(words[1], setup);
                break;

            case "m":
            case "move":
                Moving.Move();
                break;

            default:
                Console.WriteLine("Your input is invalid. Press [help/h] to display all possible commands.");
                CheckCases();
                break;
            }
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            /* RoomSetup.createRooms();
             * Console.WriteLine(RoomSetup.rooms.Count);
             * foreach(var room in RoomSetup.rooms){
             * Console.WriteLine(room.name + "          " + room.information + "          " +room.neighbours["north"]);
             * }  */
            /*
             * RoomSetup.rooms.Add(RoomSetup.Field); */

            /* CharacterSetup.createEnemies();
            *  CharacterSetup.createFriends(); */
            //HelpMethods.displayWholeInventory();
            //Friend.tell();
            Moving.Move();
            //HelpMethods.Help();
            //HelpMethods.CheckCases();
            //HelpMethods.Take("potion");
            //HelpMethods.SplitInput();
            //Start.GameStart();
            //HelpMethods.Look();
        }