Пример #1
0
        public override void RespondToInput(IGameController controller, string[] commands)
        {
            var verb        = commands[1];
            int enemyNumber = commands.Length == 3 ?
                              int.Parse(commands[2]) :
                              1;

            if (verb == "enemy")
            {
                controller.DisplayEnemyInformation(enemyNumber);
            }

            if (verb == "enemies")
            {
                controller.DisplayEnemyInformation();
            }

            if (verb == "inventory")
            {
                controller.DisplayPlayerInventory();
            }

            if (verb == "equipment")
            {
                controller.DisplayPlayerEquipment();
            }

            if (verb == "stats")
            {
                controller.DisplayPlayerStats();
            }

            if (verb == "choices")
            {
                controller.DisplaySceneExits();
            }
        }