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

📄 au.java

📁 现在非常流行的手机网游的源码,可以下载来学习学习.
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.TextField;

public final class au
  implements CommandListener
{
  private byte jdField_b_of_type_Byte = -1;
  private String jdField_a_of_type_JavaLangString = "";
  public byte a;
  private byte c;
  private byte d;
  private static short jdField_a_of_type_Short = 0;
  private static int jdField_a_of_type_Int = -1;
  private static boolean jdField_a_of_type_Boolean = false;
  private String jdField_b_of_type_JavaLangString;
  private boolean jdField_b_of_type_Boolean;
  private static au jdField_a_of_type_Au;
  private Form jdField_a_of_type_JavaxMicroeditionLcduiForm;
  private TextField jdField_a_of_type_JavaxMicroeditionLcduiTextField;
  private Command jdField_a_of_type_JavaxMicroeditionLcduiCommand;
  private Command jdField_b_of_type_JavaxMicroeditionLcduiCommand;
  private ae jdField_a_of_type_Ae;
  private ae jdField_b_of_type_Ae;
  private bc jdField_a_of_type_Bc;
  private int jdField_b_of_type_Int;

  private au()
  {
    this.jdField_a_of_type_Byte = -1;
    this.c = 1;
    this.d = 1;
    this.jdField_b_of_type_Boolean = false;
    this.jdField_b_of_type_Int = 0;
  }

  public static au a()
  {
    if (jdField_a_of_type_Au == null)
      jdField_a_of_type_Au = new au();
    return jdField_a_of_type_Au;
  }

  public static void a()
  {
    jdField_a_of_type_Au = null;
  }

  public final void b()
  {
    switch (this.jdField_b_of_type_Byte)
    {
    case 10:
      if (be.a(11))
      {
        this.jdField_b_of_type_Ae.a(11);
        return;
      }
      if (be.a(13))
      {
        this.jdField_b_of_type_Ae.a(13);
        return;
      }
      if (!(be.a(18)))
        return;
      this.jdField_b_of_type_Ae = null;
      this.jdField_b_of_type_Boolean = true;
      this.jdField_b_of_type_Byte = 1;
      return;
    case 1:
      if (be.a(11))
      {
        this.jdField_a_of_type_Ae.a(11);
        return;
      }
      if (be.a(13))
      {
        this.jdField_a_of_type_Ae.a(13);
        return;
      }
      if (be.a(18))
        break label605:
      if ((!(be.a())) || (!(this.jdField_b_of_type_Boolean)))
        return;
      be.a(be.jdField_a_of_type_Be.jdField_a_of_type_Ae.a());
      be.jdField_a_of_type_Ba.a(285215232);
      return;
    case 3:
      if ((be.a(14)) || (be.a(17)))
      {
        if (be.jdField_a_of_type_Be.jdField_a_of_type_ArrayOfBc[0].a() != 0)
        {
          this.jdField_a_of_type_JavaLangString = be.jdField_a_of_type_Be.jdField_a_of_type_ArrayOfBc[0].a();
          e();
          be.jdField_a_of_type_Ba.a(285213696);
          return;
        }
        b(3);
        return;
      }
      if (be.a(18))
      {
        be.jdField_a_of_type_Be.jdField_a_of_type_Ae.a(null);
        break label605:
      }
      if (be.a(11))
      {
        be.jdField_a_of_type_Be.jdField_a_of_type_Ae.a(11);
        return;
      }
      if (!(be.a(13)))
        return;
      be.jdField_a_of_type_Be.jdField_a_of_type_Ae.a(13);
      return;
    case 6:
      if ((be.a(14)) || (be.a(17)))
      {
        this.jdField_b_of_type_JavaLangString = be.jdField_a_of_type_Be.jdField_a_of_type_ArrayOfBc[0].a();
        be.jdField_a_of_type_Be.jdField_a_of_type_Ae.a(null);
        be.jdField_a_of_type_Ba.a(285214976);
        break label605:
      }
      if (be.a(18))
      {
        be.jdField_a_of_type_Be.jdField_a_of_type_Ae.a(null);
        break label605:
      }
      if (be.a(11))
      {
        be.jdField_a_of_type_Be.jdField_a_of_type_Ae.a(11);
        return;
      }
      if (!(be.a(13)))
        return;
      be.jdField_a_of_type_Be.jdField_a_of_type_Ae.a(13);
      return;
    case 9:
      if (be.a(18))
        break label605:
      if ((!(be.a(17))) && (!(be.a(14))))
        return;
      e();
      be.a(be.jdField_a_of_type_Be.jdField_a_of_type_Ae.a());
      be.jdField_a_of_type_Ba.a(285213184);
      return;
    case 5:
      return;
    case 4:
      if ((be.a(17)) || (be.a(14)))
      {
        be.jdField_a_of_type_Be.jdField_b_of_type_Ae = null;
        this.jdField_a_of_type_Byte = 1;
        a().getClass();
        be.jdField_a_of_type_Ba.a(285213952);
        return;
      }
      if (!(be.a(18)))
        return;
      be.jdField_a_of_type_Be.jdField_b_of_type_Ae = null;
      this.jdField_a_of_type_Byte = 0;
      a().getClass();
      be.jdField_a_of_type_Ba.a(285213952);
      return;
    case 7:
      if ((!(be.a(17))) && (!(be.a(14))))
        return;
      if (be.jdField_a_of_type_Be.jdField_b_of_type_Ae != null)
      {
        be.jdField_a_of_type_Be.jdField_b_of_type_Ae = null;
        return;
      }
      label605: e();
    case 2:
    case 8:
    }
  }

  public final void a(Graphics paramGraphics)
  {
    if (this.jdField_b_of_type_Byte == 1)
    {
      this.jdField_a_of_type_Ae.a(paramGraphics);
      return;
    }
    if (this.jdField_b_of_type_Byte == 10)
    {
      this.jdField_b_of_type_Ae.a(paramGraphics);
      return;
    }
    be.jdField_a_of_type_Be.jdField_a_of_type_Ae.a(paramGraphics);
  }

  private void b(byte paramByte)
  {
    this.jdField_b_of_type_Byte = paramByte;
    if (this.jdField_a_of_type_JavaxMicroeditionLcduiForm == null)
    {
      if (paramByte == 2)
      {
        this.jdField_a_of_type_JavaxMicroeditionLcduiForm = new Form("战队名称");
        this.jdField_a_of_type_JavaxMicroeditionLcduiTextField = new TextField("输入战队名称", "", 6, 0);
      }
      else if (paramByte == 3)
      {
        this.jdField_a_of_type_JavaxMicroeditionLcduiForm = new Form("玩家名字");
        this.jdField_a_of_type_JavaxMicroeditionLcduiTextField = new TextField("输入您要邀请加入战队的玩家的名字", "", 6, 0);
      }
      this.jdField_a_of_type_JavaxMicroeditionLcduiCommand = new Command("确定", 4, 2);
      this.jdField_b_of_type_JavaxMicroeditionLcduiCommand = new Command("返回", 2, 2);
      this.jdField_a_of_type_JavaxMicroeditionLcduiForm.append(this.jdField_a_of_type_JavaxMicroeditionLcduiTextField);
      this.jdField_a_of_type_JavaxMicroeditionLcduiForm.addCommand(this.jdField_a_of_type_JavaxMicroeditionLcduiCommand);
      this.jdField_a_of_type_JavaxMicroeditionLcduiForm.addCommand(this.jdField_b_of_type_JavaxMicroeditionLcduiCommand);
      this.jdField_a_of_type_JavaxMicroeditionLcduiForm.setCommandListener(this);
      a.a.setCurrent(this.jdField_a_of_type_JavaxMicroeditionLcduiForm);
    }
  }

  public final void commandAction(Command paramCommand, Displayable paramDisplayable)
  {
    if (paramCommand == this.jdField_a_of_type_JavaxMicroeditionLcduiCommand)
    {
      this.jdField_a_of_type_JavaLangString = this.jdField_a_of_type_JavaxMicroeditionLcduiTextField.getString().trim();
      if (al.a(this.jdField_a_of_type_JavaLangString, 6, this.jdField_a_of_type_JavaxMicroeditionLcduiForm, false))
        if (this.jdField_b_of_type_Byte == 2)
          be.jdField_a_of_type_Ba.a(285212928);
        else if (this.jdField_b_of_type_Byte == 3)
          be.jdField_a_of_type_Ba.a(285213696);
      else
        b("名字不合法");
    }
    else if (paramCommand == this.jdField_b_of_type_JavaxMicroeditionLcduiCommand)
    {
      if (this.jdField_b_of_type_Byte == 3)
      {
        a(3);
      }
      else
      {
        f();
        e();
      }
    }
    this.jdField_a_of_type_JavaxMicroeditionLcduiForm = null;
    this.jdField_a_of_type_JavaxMicroeditionLcduiTextField = null;
    this.jdField_a_of_type_JavaxMicroeditionLcduiCommand = null;
    this.jdField_b_of_type_JavaxMicroeditionLcduiCommand = null;
    a.a.setCurrent(be.jdField_a_of_type_Be);
  }

  private static void d()
  {
    be.jdField_a_of_type_Ba.a(285213440);
  }

  private void a(String paramString)
  {
    ae localae;
    this.jdField_b_of_type_Byte = 4;
    a(localae = ae.a("arenaInvite", paramString, "接受", "拒绝", be.jdField_d_of_type_Int - 22));
  }

  private void a(String paramString, byte paramByte, short paramShort)
  {
    ae localae;
    this.d = paramByte;
    if (paramShort > 0)
    {
      jdField_a_of_type_Int = paramShort;
      jdField_a_of_type_Short = 0;
      jdField_a_of_type_Boolean = true;
    }
    this.jdField_b_of_type_Byte = 5;
    a(localae = ae.a("arena", paramString, "", "", be.jdField_d_of_type_Int - 22));
  }

  private void b(String paramString)
  {
    ae localae;
    f();
    this.jdField_b_of_type_Byte = 7;
    a(localae = ae.a("arena", paramString, "确定", "", be.jdField_d_of_type_Int - 22));
  }

  private static void a(ae paramae)
  {
    if (be.jdField_a_of_type_Be.jdField_a_of_type_Ae != null)
    {
      be.i(34);
      be.jdField_a_of_type_Be.jdField_a_of_type_Ae.a(paramae);
      return;
    }
    if (be.jdField_a_of_type_Be.jdField_b_of_type_Ae != null)
      be.jdField_a_of_type_Be.jdField_b_of_type_Ae = null;
    be.jdField_a_of_type_Be.jdField_b_of_type_Ae = paramae;
    paramae.b(be.jdField_d_of_type_Int - paramae.jdField_a_of_type_Int >> 1, be.e - paramae.jdField_b_of_type_Int >> 1);
  }

  public static ae a()
  {
    if (be.jdField_a_of_type_Be.jdField_a_of_type_Ae != null)
      return be.jdField_a_of_type_Be.jdField_a_of_type_Ae;
    return be.jdField_a_of_type_Be.jdField_b_of_type_Ae;
  }

  private ae a(String paramString, String[] paramArrayOfString, boolean paramBoolean, byte paramByte)
  {
    int i;
    int j;
    ae localae = new ae(0, 0, be.jdField_d_of_type_Int, be.e, "");
    am localam1 = new am(0, 0, be.jdField_d_of_type_Int - 1, be.e - 1, 4);
    am localam2 = new am(0, 7, 161, 17, 7);
    ar localar1 = new ar(0, 10, 0, 0, paramString, 15718814, 1, 0);
    am localam3 = new am(0, 27, 161, 156, 0);
    if ((j = i = (byte)paramArrayOfString.length) < 1)
      j = 1;
    bc localbc = new bc(0, 27, 161, 158, j, 1, j, 0, 3);
    for (int k = 0; k < paramArrayOfString.length; ++k)
      localbc.a(paramArrayOfString[k], 15718814);
    ar localar2 = new ar(0, 0, 0, 0, "返回", 15718814, 1, 0);
    this.jdField_b_of_type_Boolean = paramBoolean;
    localae.a(localam1);
    if (paramBoolean)
    {
      ar localar3 = new ar(0, 0, 0, 0, "查看", 15718814, 1, 0);
      localae.b(localar3, 5);
    }
    localae.b(localam3, 2);
    localae.b(localam2, 2);
    localae.b(localar1, 2);
    localae.b(localar2, 6);
    localae.b(localbc, 2);
    localbc.a(localbc.c - 1, localbc.jdField_d_of_type_Int);
    localae.a(true);
    localbc.a(true);
    switch (paramByte)
    {
    case 1:
      this.jdField_a_of_type_Bc = null;
      this.jdField_a_of_type_Bc = localbc;
    case 2:
    }
    return localae;
  }

  public static void c()

⌨️ 快捷键说明

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