Ejemplo n.º 1
0
        public static void NormalCommands(string verb, string noun)
        {
            switch (verb)
            {
            case "look":
                if (noun != "")
                {
                    Look.Looking(noun);
                }
                else
                {
                    Look.Looking();
                }
                break;

            case "help":
                HelpFile.HelpInfo();
                break;

            case "score":
                Score.Stats(Player._player);
                break;

            case "get":
                Get.GetCommand(noun, Player._player);
                break;

            case "north":
                PlayerMove.MoveTo(verb);
                break;

            case "east":
                PlayerMove.MoveTo(verb);
                break;

            case "south":
                PlayerMove.MoveTo(verb);
                break;

            case "west":
                PlayerMove.MoveTo(verb);
                break;

            case "inventory":
                Inventory.Inv(Player._player);
                break;

            case "attack":
                Attack.Attacking(noun, Player._player);
                break;

            case "drop":
                ItemDrop.Drop(noun, Player._player);
                break;

            case "equip":
                Equipt.Equip(noun, Player._player);
                break;

            case "save":
                SaveData.SaveGameData(Player._player);
                break;

            case "equipment":
                Worn.DisplayEquipment(Player._player);
                break;
            }
        }
Ejemplo n.º 2
0
        public static void NormalCommands(string verb, string noun)
        {
            switch (verb)
            {
                #region Gen Input
            case "look":
                if (noun != "")
                {
                    Look.Looking(noun);
                }
                else
                {
                    Look.Looking();
                }
                break;

            case "get":
                Get.GetCommand(noun, Player._player);
                break;

            case "bags":
                Bags.BagInv(Player._player);
                break;

            case "attack":
                Attack.Attacking(noun, Player._player);
                break;

            case "drop":
                Drop.Dropping(noun, Player._player);
                break;

            case "help":
                Help.HelpFile();
                break;

            case "stats":
                Stats.info(Player._player);
                break;

            case "equip":
                Equipt.Equip(noun, Player._player);
                break;
                #endregion

                #region Movemnt Input
            case "north":
                MovePlayer.MoveTo(verb);
                break;

            case "east":
                MovePlayer.MoveTo(verb);
                break;

            case "south":
                MovePlayer.MoveTo(verb);
                break;

            case "west":
                MovePlayer.MoveTo(verb);
                break;
                #endregion

            case "devmenu":     // Hidden Option to bring up options to display Files
                DevMenu.InterMenu();
                break;

            default:
                Console.WriteLine(verb + " is not a command");     // display when a command is not valid
                break;
            }
        }