Exemplo n.º 1
0
    public EnumActionMarketItem TryToBuy(IItem itemMarket)
    {
        GameItem item = (GameItem)itemMarket;

        if (item.Price <= playerInformation.GetPlayerMoney())
        {
            return(EnumActionMarketItem.Sold);
        }
        else
        {
            return(EnumActionMarketItem.NotSold);
        }
    }