Exemplo n.º 1
0
    public void PrintShopList(Enumy pers)
    {
        Enumy Pers = pers;

        Console.WriteLine();
        foreach (string i in ShopList)
        {
            Console.WriteLine(i);
        }
        for (;;)
        {
            switch (ShopMenuResult())
            {
            case -1:
                break;

            case 1:
                if (ByShop(pers, SheildUp))
                {
                    pers.ShildUpUpEnemy();
                    Console.WriteLine("ShieldUp \nкошель: " + Pers.GetKoshel());
                }
                break;

            case 2:
                if (ByShop(pers, StrengUp))
                {
                    pers.StrengUpEnemy();
                    Console.WriteLine("StrengUp \nкошель: " + Pers.GetKoshel());
                }
                break;

            case 3:
                if (ByShop(pers, HillUp))
                {
                    pers.Hill(HillUp);
                    Console.WriteLine("HilldUp \nкошель: " + Pers.GetKoshel());
                }
                break;

            case 0:
                Podgotovka pdgtvk = new Podgotovka();
                pdgtvk.StartMenu(Pers, 0);
                break;

            default:
                Console.WriteLine("What?");
                break;
            }
        }
    }