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

📄 an.java

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

public final class an
{
  public short[][] a;
  public short[][] b;
  public Image a;
  public short[] a;
  public int a;
  public byte a;
  public s[] a;
  public ab a;
  public ar a;
  public int b;
  public String[] a;
  public byte[] a;
  public int[] a;

  public an()
  {
    this.jdField_a_of_type_Array2dOfShort = ((short[][])null);
    this.jdField_b_of_type_Array2dOfShort = ((short[][])null);
    this.jdField_a_of_type_JavaxMicroeditionLcduiImage = null;
    this.jdField_a_of_type_ArrayOfShort = null;
    this.jdField_a_of_type_Int = 0;
    this.jdField_a_of_type_Byte = 0;
    this.jdField_a_of_type_ArrayOfS = new s[3];
    this.jdField_a_of_type_Ab = null;
    this.jdField_a_of_type_Ar = null;
    this.jdField_b_of_type_Int = 0;
    this.jdField_a_of_type_ArrayOfJavaLangString = { "请按左软键", "请按右软键", "请选择网络连接方式", "设置完成,点击中间键返回" };
    this.jdField_a_of_type_ArrayOfByte = new byte[3];
    this.jdField_a_of_type_ArrayOfInt = { 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 42, 35, be.jdField_a_of_type_Be.getKeyCode(2), be.jdField_a_of_type_Be.getKeyCode(5), be.jdField_a_of_type_Be.getKeyCode(1), be.jdField_a_of_type_Be.getKeyCode(6), be.jdField_a_of_type_Be.getKeyCode(8) };
  }

  public final void a(Graphics paramGraphics)
  {
    if (be.jdField_a_of_type_Be.jdField_a_of_type_Ae == null)
    {
      this.jdField_a_of_type_Int = 0;
      this.jdField_a_of_type_ArrayOfShort = al.a("/key.pdat");
      this.jdField_b_of_type_Array2dOfShort = al.a("/key.fdat", 0);
      this.jdField_a_of_type_Array2dOfShort = al.a("/key.mdat");
      this.jdField_a_of_type_JavaxMicroeditionLcduiImage = al.a("/key.png");
      int i = Font.getFont(0, 0, 8).getHeight();
      be.jdField_a_of_type_Be.jdField_a_of_type_Ae = new ae(0, 0, be.d, be.e, "");
      be.jdField_a_of_type_Be.jdField_a_of_type_Ae.b = 9;
      am localam1 = new am(0, 0 - i, be.d - 1, be.e, 4);
      be.jdField_a_of_type_Be.jdField_a_of_type_Ae.a(localam1);
      am localam2 = new am(0, 10 - i, 160, 17, 7);
      be.jdField_a_of_type_Be.jdField_a_of_type_Ae.b(localam2, 2);
      ar localar = new ar(0, 13 - i, 0, 0, "系统设置", 15587742, 1, 0);
      be.jdField_a_of_type_Be.jdField_a_of_type_Ae.b(localar, 2);
      am localam3 = new am(0, 27 - i, 160, 170, 0);
      be.jdField_a_of_type_Be.jdField_a_of_type_Ae.b(localam3, 2);
      am localam4 = new am(0, 32 - i, 150, 160, 0);
      be.jdField_a_of_type_Be.jdField_a_of_type_Ae.b(localam4, 2);
      this.jdField_a_of_type_ArrayOfByte[0] = (byte)be.jdField_a_of_type_Int;
      this.jdField_a_of_type_ArrayOfByte[1] = (byte)be.jdField_b_of_type_Int;
      this.jdField_a_of_type_ArrayOfByte[2] = (byte)((w.n) ? 0 : 1);
      this.jdField_a_of_type_Ar = new ar(0, 102 - i, 145, 0, this.jdField_a_of_type_ArrayOfJavaLangString[this.jdField_b_of_type_Int], 15587742, 1, 0);
      be.jdField_a_of_type_Be.jdField_a_of_type_Ae.b(this.jdField_a_of_type_Ar, 2);
      this.jdField_a_of_type_ArrayOfS[0] = new s(35, 38 - i, 0, 0, "左软键设置", 3);
      this.jdField_a_of_type_ArrayOfS[0].a("" + ((!(a())) ? " " : "OK"));
      this.jdField_a_of_type_ArrayOfS[0].d(0);
      this.jdField_a_of_type_ArrayOfS[1] = new s(35, 54 - i, 0, 0, "右软键设置", 3);
      this.jdField_a_of_type_ArrayOfS[1].a("" + ((!(a())) ? " " : "OK"));
      this.jdField_a_of_type_ArrayOfS[1].d(0);
      this.jdField_a_of_type_ArrayOfS[2] = new s(35, 70 - i, 0, 0, "连接方式", 3);
      this.jdField_a_of_type_ArrayOfS[2].a((this.jdField_a_of_type_ArrayOfByte[2] == 0) ? "cmwap" : "cmnet");
      this.jdField_a_of_type_ArrayOfS[2].d(0);
      this.jdField_a_of_type_Ab = new ab(35, 86 - i, 68, 20, "按中间键确认", 0);
      this.jdField_a_of_type_ArrayOfS[0].a(this.jdField_a_of_type_ArrayOfS[1], 2);
      this.jdField_a_of_type_ArrayOfS[1].a(this.jdField_a_of_type_ArrayOfS[2], 2);
      this.jdField_a_of_type_ArrayOfS[2].a(this.jdField_a_of_type_Ab, 2);
      be.jdField_a_of_type_Be.jdField_a_of_type_Ae.a(this.jdField_a_of_type_ArrayOfS[0]);
      be.jdField_a_of_type_Be.jdField_a_of_type_Ae.a(this.jdField_a_of_type_ArrayOfS[1]);
      be.jdField_a_of_type_Be.jdField_a_of_type_Ae.a(this.jdField_a_of_type_ArrayOfS[2]);
      be.jdField_a_of_type_Be.jdField_a_of_type_Ae.a(this.jdField_a_of_type_Ab);
      be.jdField_a_of_type_Be.jdField_a_of_type_Ae.a(true);
      this.jdField_b_of_type_Int = 0;
    }
    be.jdField_a_of_type_Be.jdField_a_of_type_Ae.a(paramGraphics);
    al.a(this.jdField_a_of_type_JavaxMicroeditionLcduiImage, paramGraphics, this.jdField_b_of_type_Array2dOfShort[this.jdField_a_of_type_Array2dOfShort[this.jdField_b_of_type_Int][(this.jdField_a_of_type_Int++ % this.jdField_a_of_type_Array2dOfShort[this.jdField_b_of_type_Int].length)]], this.jdField_a_of_type_ArrayOfShort, be.d / 2 - this.jdField_a_of_type_JavaxMicroeditionLcduiImage.getWidth(), be.e - this.jdField_a_of_type_JavaxMicroeditionLcduiImage.getHeight() - 32, false);
  }

  private boolean a(int paramInt)
  {
    int i = 1;
    for (int j = 0; j < this.jdField_a_of_type_ArrayOfInt.length; ++j)
      if (paramInt == this.jdField_a_of_type_ArrayOfInt[j])
        i = 0;
    return i;
  }

  public final void a(int paramInt)
  {
    n localn = be.jdField_a_of_type_Be.jdField_a_of_type_Ae.a();
    if (be.jdField_a_of_type_Be.a(localn, paramInt))
    {
      localn = be.jdField_a_of_type_Be.jdField_a_of_type_Ae.a();
      if (this.jdField_a_of_type_ArrayOfS[0] == localn)
        this.jdField_b_of_type_Int = 0;
      else if (this.jdField_a_of_type_ArrayOfS[1] == localn)
        this.jdField_b_of_type_Int = 1;
      else if (this.jdField_a_of_type_ArrayOfS[2] == localn)
        this.jdField_b_of_type_Int = 2;
      else if (this.jdField_a_of_type_Ab == localn)
        this.jdField_b_of_type_Int = 3;
      this.jdField_a_of_type_Ar.a(this.jdField_a_of_type_ArrayOfJavaLangString[this.jdField_b_of_type_Int]);
      return;
    }
    if ((this.jdField_a_of_type_ArrayOfS[0] == localn) && (a(paramInt)))
    {
      this.jdField_a_of_type_ArrayOfByte[0] = (byte)paramInt;
      this.jdField_a_of_type_ArrayOfS[0].a(0, " OK");
      this.jdField_b_of_type_Int = 0;
    }
    else if ((this.jdField_a_of_type_ArrayOfS[1] == localn) && (a(paramInt)))
    {
      this.jdField_a_of_type_ArrayOfByte[1] = (byte)paramInt;
      this.jdField_a_of_type_ArrayOfS[1].a(0, " OK");
      this.jdField_b_of_type_Int = 1;
    }
    else if ((this.jdField_a_of_type_ArrayOfS[2] == localn) && (paramInt == be.jdField_a_of_type_Be.getKeyCode(8)))
    {
      this.jdField_a_of_type_ArrayOfByte[2] = (byte)(1 - this.jdField_a_of_type_ArrayOfByte[2]);
      this.jdField_a_of_type_ArrayOfS[2].a(0, (this.jdField_a_of_type_ArrayOfByte[2] == 0) ? "cmwap" : "cmnet");
      this.jdField_b_of_type_Int = 2;
    }
    else if (this.jdField_a_of_type_Ab == localn)
    {
      int i = 0;
      try
      {
        i = be.jdField_a_of_type_Be.getGameAction(paramInt);
      }
      catch (Exception localException)
      {
      }
      if (i == 8)
      {
        al.a(false, this.jdField_a_of_type_ArrayOfByte, "SYSTEMRMS");
        if (this.jdField_a_of_type_ArrayOfByte != null)
        {
          be.jdField_a_of_type_Int = this.jdField_a_of_type_ArrayOfByte[0];
          be.jdField_b_of_type_Int = this.jdField_a_of_type_ArrayOfByte[1];
          w.n = this.jdField_a_of_type_ArrayOfByte[2] == 0;
        }
        this.jdField_a_of_type_ArrayOfShort = null;
        this.jdField_b_of_type_Array2dOfShort = ((short[][])null);
        this.jdField_a_of_type_Array2dOfShort = ((short[][])null);
        this.jdField_a_of_type_JavaxMicroeditionLcduiImage = null;
        be.jdField_a_of_type_Be.e();
        be.jdField_a_of_type_Be.a(this.jdField_a_of_type_Byte);
      }
    }
    if ((paramInt != be.jdField_a_of_type_Be.getKeyCode(2)) && (paramInt != be.jdField_a_of_type_Be.getKeyCode(5)) && (paramInt != be.jdField_a_of_type_Be.getKeyCode(1)) && (paramInt != be.jdField_a_of_type_Be.getKeyCode(6)) && (paramInt != be.jdField_a_of_type_Be.getKeyCode(8)))
      a(localn);
  }

  private void a(n paramn)
  {
    if (paramn == this.jdField_a_of_type_ArrayOfS[0])
    {
      be.jdField_a_of_type_Be.jdField_a_of_type_Ae.c(this.jdField_a_of_type_ArrayOfS[1]);
      this.jdField_b_of_type_Int = 1;
    }
    else if (paramn == this.jdField_a_of_type_ArrayOfS[1])
    {
      be.jdField_a_of_type_Be.jdField_a_of_type_Ae.c(this.jdField_a_of_type_ArrayOfS[2]);
      this.jdField_b_of_type_Int = 2;
    }
    else if (paramn == this.jdField_a_of_type_ArrayOfS[2])
    {
      be.jdField_a_of_type_Be.jdField_a_of_type_Ae.c(this.jdField_a_of_type_Ab);
      this.jdField_b_of_type_Int = 3;
    }
    this.jdField_a_of_type_Ar.a(this.jdField_a_of_type_ArrayOfJavaLangString[this.jdField_b_of_type_Int]);
  }

  public static boolean a()
  {
    byte[] arrayOfByte = null;
    if ((arrayOfByte = al.a(true, null, "SYSTEMRMS")) != null)
    {
      be.jdField_a_of_type_Int = arrayOfByte[0];
      be.jdField_b_of_type_Int = arrayOfByte[1];
      w.n = arrayOfByte[2] == 0;
    }
    return (arrayOfByte != null);
  }
}

⌨️ 快捷键说明

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