⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ax.java

📁 现在非常流行的手机网游的源码,可以下载来学习学习.
💻 JAVA
字号:
import java.util.Vector;
import javax.microedition.lcdui.Font;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.Screen;

public final class ax
{
  public static Vector a;
  public static Vector b;
  public static boolean a;
  public static Integer[] a;
  public static byte a;
  public static String[] a;
  public static String a;
  public static int a;
  public static int b;
  public static long a;
  public static boolean b;
  public static byte b;

  private static void a(String paramString, int paramInt)
  {
    if (jdField_a_of_type_Boolean)
      return;
    if (paramInt == aq.a().c)
      return;
    if ((paramString == null) || (paramString.equals("")) || (paramString.equals("系统提示")))
      return;
    for (int i = 0; i < w.X.length; ++i)
      if (w.X[i].equals(paramString))
        return;
    for (i = 0; i < jdField_a_of_type_JavaUtilVector.size(); ++i)
      if (jdField_a_of_type_JavaUtilVector.elementAt(i).equals(paramString))
        return;
    for (i = 0; i < jdField_b_of_type_JavaUtilVector.size(); ++i)
    {
      Integer localInteger;
      if ((localInteger = (Integer)jdField_b_of_type_JavaUtilVector.elementAt(i)).intValue() == paramInt)
      {
        if (i != 0)
        {
          jdField_b_of_type_JavaUtilVector.removeElementAt(i);
          jdField_a_of_type_JavaUtilVector.removeElementAt(i);
          jdField_b_of_type_JavaUtilVector.insertElementAt(new Integer(paramInt), 0);
          jdField_a_of_type_JavaUtilVector.insertElementAt(paramString, 0);
        }
        return;
      }
    }
    if (jdField_b_of_type_JavaUtilVector.size() >= 6)
    {
      jdField_b_of_type_JavaUtilVector.removeElementAt(jdField_b_of_type_JavaUtilVector.size() - 1);
      jdField_a_of_type_JavaUtilVector.removeElementAt(jdField_a_of_type_JavaUtilVector.size() - 1);
    }
    jdField_b_of_type_JavaUtilVector.insertElementAt(new Integer(paramInt), 0);
    jdField_a_of_type_JavaUtilVector.insertElementAt(paramString, 0);
  }

  public static void a(int paramInt, byte[] paramArrayOfByte)
  {
    c localc = new c(paramArrayOfByte);
    switch (paramInt)
    {
    case 83886720:
      w.a = localc.a();
      return;
    case 83886464:
      be.F = localc.a();
      int i = localc.a();
      String str1 = localc.a();
      String str2 = localc.a();
      if (be.F == 1)
      {
        int j;
        if ((j = localc.a()) == 0)
        {
          be.F = 7;
          be.p = "对方已经离线!";
          b(be.F, be.p);
        }
        else if (j == 2)
        {
          be.F = 7;
          be.p = "对方已将你的发言屏蔽!";
          b(be.F, be.p);
        }
      }
      else
      {
        if ((be.F != 6) && (be.F != 8))
          a(str1, i);
        be.o = str1;
        be.p = str2.replace('[', '(').replace(']', ')');
        String str3 = (i == 1) ? "" : w.Q[be.F];
        b(be.F, str3 + be.o + ":" + be.p);
        a(be.F, be.q);
        if (be.F == 8)
        {
          jdField_a_of_type_Long = System.currentTimeMillis();
          jdField_a_of_type_JavaLangString = be.q;
          jdField_a_of_type_ArrayOfJavaLangString = al.a(be.q, be.d - 4, be.jdField_a_of_type_ArrayOfJavaxMicroeditionLcduiFont[1]);
          jdField_a_of_type_Byte = (byte)((i == aq.a().c) ? 1 : 2);
          int k = 0;
          int l = be.e - 60 - 25;
          if (jdField_a_of_type_Byte == 1)
          {
            jdField_a_of_type_Int = 2;
            jdField_b_of_type_Int = l - be.jdField_a_of_type_ArrayOfJavaxMicroeditionLcduiFont[1].getHeight();
          }
          else
          {
            jdField_a_of_type_Int = 40;
            jdField_b_of_type_Int = l >> 1;
          }
        }
        be.j[0] = i;
        if ((be.jdField_a_of_type_Be.jdField_a_of_type_JavaxMicroeditionLcduiForm != null) && (be.jdField_a_of_type_Be.jdField_a_of_type_JavaxMicroeditionLcduiForm.getTitle() == "聊天") && (((!(jdField_b_of_type_Boolean)) || ((jdField_b_of_type_Boolean) && (be.F == 1)))))
        {
          y localy = new y(be.f[0]);
          if (be.G == 8)
          {
            if (be.f[0].startsWith(w.Q[8]))
              if ((be.jdField_a_of_type_Be.jdField_a_of_type_JavaxMicroeditionLcduiForm.size() != 0) && (be.jdField_a_of_type_Be.jdField_a_of_type_JavaxMicroeditionLcduiForm.get(0) == be.jdField_a_of_type_Be.b))
                be.jdField_a_of_type_Be.jdField_a_of_type_JavaxMicroeditionLcduiForm.insert(1, localy);
              else
                be.jdField_a_of_type_Be.jdField_a_of_type_JavaxMicroeditionLcduiForm.insert(0, localy);
          }
          else
          {
            localy.a(be.j[0], be.f[0]);
            be.jdField_a_of_type_Be.jdField_a_of_type_JavaxMicroeditionLcduiForm.insert(1, localy);
          }
          if (be.jdField_a_of_type_Be.jdField_a_of_type_JavaxMicroeditionLcduiForm.size() > 19)
            be.jdField_a_of_type_Be.jdField_a_of_type_JavaxMicroeditionLcduiForm.delete(19);
        }
      }
      aw.a();
    }
  }

  public static byte[] a(int paramInt)
  {
    c localc = new c();
    switch (paramInt)
    {
    case 83886336:
      if ((be.G == 5) && (be.jdField_a_of_type_Be.Y == 0))
        break label161:
      be.l = be.l.replace('\n', ' ').replace('\r', ' ');
      if (be.l.trim().equals(""))
        break label161:
      localc.a(be.G);
      localc.c(be.u);
      localc.a(be.l);
      if (be.G == 1)
      {
        a(be.m, be.u);
        break label161:
      }
      if (be.G != 8)
        break label161;
      localc.a((short)be.jdField_a_of_type_Ah.a());
      break;
    case 83886592:
      localc.a(w.a);
    }
    label161: return localc.a();
  }

  public static void a(byte paramByte, String paramString)
  {
    if ((paramString == null) || (paramString.equals("")))
      return;
    for (int i = be.f.length - 1; i > 0; --i)
    {
      be.f[i] = be.f[(i - 1)];
      be.k[i] = be.k[(i - 1)];
      be.j[i] = be.j[(i - 1)];
    }
    be.f[0] = paramString;
    be.k[0] = w.b[paramByte];
  }

  public static void b(byte paramByte, String paramString)
  {
    be.q = paramString;
    be.F = paramByte;
    String[] arrayOfString = al.a(paramString, be.d - 4, be.jdField_a_of_type_ArrayOfJavaxMicroeditionLcduiFont[1]);
    for (int i = 0; i < arrayOfString.length; ++i)
    {
      aw.jdField_b_of_type_JavaUtilVector.addElement(new Byte(paramByte));
      aw.jdField_a_of_type_JavaUtilVector.addElement(arrayOfString[i]);
    }
  }

  public static void a()
  {
    if (jdField_a_of_type_Byte == 1)
      jdField_b_of_type_Int -= 2;
    else
      jdField_a_of_type_Int -= 4;
    if (System.currentTimeMillis() - jdField_a_of_type_Long >= 12000L)
    {
      jdField_a_of_type_Byte = 0;
      jdField_a_of_type_Long = 0L;
    }
  }

  static
  {
    jdField_a_of_type_JavaUtilVector = new Vector();
    jdField_b_of_type_JavaUtilVector = new Vector();
    jdField_a_of_type_Boolean = false;
    jdField_a_of_type_ArrayOfJavaLangInteger = null;
    jdField_a_of_type_Byte = 0;
    jdField_a_of_type_Long = 0L;
    jdField_b_of_type_Boolean = false;
    jdField_b_of_type_Byte = 0;
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -