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

📄 s.java

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

public final class s extends n
{
  private String a;
  public Vector a;
  public int i;
  public int j;
  private byte jdField_e_of_type_Byte;
  private byte f;
  public static final byte b = (byte)(10 * n.g / 176);
  public static final byte c = (byte)(5 * n.g / 176);
  public static final byte d = (byte)(7 * n.g / 176);
  private int k;
  private int l;
  private static int m = 0;
  private int n;
  private boolean jdField_e_of_type_Boolean;
  private byte g;
  private static int o = 0;
  private byte h;
  private static byte i;

  private s(int paramInt1, int paramInt2, int paramInt3, int paramInt4, String paramString)
  {
    super(paramInt1, paramInt2, paramInt3, paramInt4);
    this.jdField_a_of_type_JavaLangString = null;
    this.jdField_a_of_type_JavaUtilVector = new Vector();
    this.jdField_i_of_type_Int = 0;
    this.j = 0;
    this.jdField_e_of_type_Byte = 10;
    this.f = 0;
    this.k = 0;
    this.l = 0;
    this.n = 15718814;
    this.jdField_e_of_type_Boolean = false;
    this.g = 0;
    this.h = 0;
    this.jdField_a_of_type_JavaLangString = paramString;
    this.jdField_b_of_type_Int = (n.f + 2);
  }

  public s(int paramInt1, int paramInt2, int paramInt3, int paramInt4, String paramString, byte paramByte)
  {
    this(paramInt1, paramInt2, paramInt3, paramInt4, paramString);
    this.g = paramByte;
  }

  public final void a(String paramString)
  {
    if (paramString != null)
      this.jdField_a_of_type_JavaUtilVector.addElement(paramString);
  }

  public final void a(int paramInt, String paramString)
  {
    this.jdField_a_of_type_JavaUtilVector.setElementAt(paramString, paramInt);
  }

  public final void a(int paramInt)
  {
    this.j = paramInt;
    this.jdField_i_of_type_Int = paramInt;
  }

  public final void a()
  {
    if (this.g == 2)
      this.jdField_e_of_type_Boolean = true;
  }

  public final void b(int paramInt)
  {
    if (this.jdField_e_of_type_Boolean)
      this.n = paramInt;
  }

  public final void a(Graphics paramGraphics)
  {
    int i1 = this.c;
    if (++this.l > 5)
      this.l = 0;
    if ((this.jdField_a_of_type_Boolean) && (!(this.jdField_e_of_type_Boolean)))
      be.a[17].a(paramGraphics, i1 - 13, this.d + 1 + jdField_i_of_type_Byte, this.l / 3, false);
    if (this.jdField_a_of_type_Boolean)
      paramGraphics.setColor(16375574);
    else
      paramGraphics.setColor(10321225);
    if (this.jdField_e_of_type_Boolean)
      paramGraphics.setColor(this.n);
    paramGraphics.drawString(this.jdField_a_of_type_JavaLangString, i1, this.d, 20);
    if (this.g == 0)
    {
      i1 += n.jdField_a_of_type_JavaxMicroeditionLcduiFont.stringWidth(this.jdField_a_of_type_JavaLangString) + b;
      if (this.k >= this.jdField_a_of_type_JavaUtilVector.size())
        this.k = (this.jdField_a_of_type_JavaUtilVector.size() - 1);
      for (int i2 = 0; i2 < this.jdField_a_of_type_JavaUtilVector.size(); ++i2)
      {
        String str2 = (String)this.jdField_a_of_type_JavaUtilVector.elementAt(i2);
        be.a[11].a(paramGraphics, i1, this.d + 1 + jdField_i_of_type_Byte, 0, false);
        if (i2 == this.k)
        {
          paramGraphics.fillRect(i1 + 2, this.d + 4 + jdField_i_of_type_Byte, 5, 3);
          paramGraphics.fillRect(i1 + 3, this.d + 3 + jdField_i_of_type_Byte, 3, 5);
        }
        i1 += c + 9;
        paramGraphics.drawString(str2, i1, this.d, 20);
        i1 += n.jdField_a_of_type_JavaxMicroeditionLcduiFont.stringWidth(str2) + d;
      }
      return;
    }
    if ((this.g == 2) || (this.g == 3))
    {
      i1 += n.jdField_a_of_type_JavaxMicroeditionLcduiFont.stringWidth(this.jdField_a_of_type_JavaLangString) + b + 5;
      if (this.jdField_e_of_type_Boolean)
        i1 -= b;
      if (this.k >= this.jdField_a_of_type_JavaUtilVector.size())
        this.k = (this.jdField_a_of_type_JavaUtilVector.size() - 1);
      String str1 = (String)this.jdField_a_of_type_JavaUtilVector.elementAt(this.k);
      if (this.g != 3)
        if ((this.jdField_e_of_type_Byte < 2) && (this.f == 3))
        {
          be.a[22].a(paramGraphics, i1 - 2, this.d + 3 + jdField_i_of_type_Byte, 0, false);
          s tmp452_451 = this;
          tmp452_451.jdField_e_of_type_Byte = (byte)(tmp452_451.jdField_e_of_type_Byte + 1);
        }
        else
        {
          be.a[22].a(paramGraphics, i1, this.d + 3 + jdField_i_of_type_Byte, 0, false);
        }
      i1 += 10;
      if ((this.jdField_e_of_type_Boolean) && (this.jdField_a_of_type_Boolean))
      {
        s tmp506_505 = this;
        tmp506_505.h = (byte)(tmp506_505.h + 1);
        if (this.h > 4)
          this.h = 0;
        if (this.h / 2 == 0)
          paramGraphics.setColor(this.n);
        else
          paramGraphics.setColor(16770362);
      }
      paramGraphics.drawString(str1, i1, this.d, 20);
      i1 += n.jdField_a_of_type_JavaxMicroeditionLcduiFont.stringWidth(str1) + 5;
      if (this.g != 3)
        if ((this.jdField_e_of_type_Byte < 2) && (this.f == 4))
        {
          be.a[22].a(paramGraphics, i1 + 2, this.d + 3 + jdField_i_of_type_Byte, 0, true);
          s tmp629_628 = this;
          tmp629_628.jdField_e_of_type_Byte = (byte)(tmp629_628.jdField_e_of_type_Byte + 1);
        }
        else
        {
          be.a[22].a(paramGraphics, i1, this.d + 3 + jdField_i_of_type_Byte, 0, true);
        }
      if (this.jdField_e_of_type_Byte >= 2)
        this.jdField_e_of_type_Byte = 10;
      return;
    }
    i1 += n.jdField_a_of_type_JavaxMicroeditionLcduiFont.stringWidth(this.jdField_a_of_type_JavaLangString) + c - 2;
    be.a[22].a(paramGraphics, i1, this.d + 3 + jdField_i_of_type_Byte, 0, false);
    i1 += 7;
    if ((this.jdField_e_of_type_Byte < 2) && (this.f == 3))
    {
      be.a[21].a(paramGraphics, i1, this.d + 1 + jdField_i_of_type_Byte, 2, false);
      s tmp765_764 = this;
      tmp765_764.jdField_e_of_type_Byte = (byte)(tmp765_764.jdField_e_of_type_Byte + 1);
    }
    else
    {
      be.a[21].a(paramGraphics, i1, this.d + 1 + jdField_i_of_type_Byte, 0, false);
    }
    if (this.jdField_i_of_type_Int < 10)
      i1 += n.jdField_a_of_type_JavaxMicroeditionLcduiFont.charWidth('0');
    i1 += c + 10;
    paramGraphics.setColor(16375574);
    paramGraphics.drawString(this.jdField_i_of_type_Int + "", i1, this.d, 20);
    i1 += n.jdField_a_of_type_JavaxMicroeditionLcduiFont.stringWidth(this.jdField_i_of_type_Int + "") + c;
    if ((this.jdField_e_of_type_Byte < 2) && (this.f == 4))
    {
      be.a[21].a(paramGraphics, i1, this.d + 1 + jdField_i_of_type_Byte, 3, false);
      s tmp944_943 = this;
      tmp944_943.jdField_e_of_type_Byte = (byte)(tmp944_943.jdField_e_of_type_Byte + 1);
    }
    else
    {
      be.a[21].a(paramGraphics, i1, this.d + 1 + jdField_i_of_type_Byte, 1, false);
    }
    be.a[22].a(paramGraphics, i1 += 13, this.d + 3 + jdField_i_of_type_Byte, 1, false);
    if (this.jdField_e_of_type_Byte >= 2)
      this.jdField_e_of_type_Byte = 10;
  }

  public final void a(boolean paramBoolean)
  {
    super.a(paramBoolean);
    this.l = 0;
  }

  public final n a(byte paramByte)
  {
    switch (paramByte)
    {
    case 1:
      return this.jdField_a_of_type_N;
    case 2:
      return this.jdField_b_of_type_N;
    case 3:
      if (this.g != 1)
      {
        if (--this.k < 0)
          this.k = 0;
        else if (this.g == 2)
          a(paramByte);
      }
      else
      {
        if (this.jdField_i_of_type_Int <= this.j)
          return null;
        this.jdField_i_of_type_Int -= 1;
        m += 1;
        a(paramByte);
      }
      return null;
    case 4:
      if (this.g != 1)
      {
        if (++this.k >= this.jdField_a_of_type_JavaUtilVector.size())
          this.k = (this.jdField_a_of_type_JavaUtilVector.size() - 1);
        else if (this.g == 2)
          a(paramByte);
      }
      else
      {
        if ((this.jdField_i_of_type_Int >= 999) || (m <= 0))
          return null;
        this.jdField_i_of_type_Int += 1;
        m -= 1;
        a(paramByte);
      }
      return null;
    }
    return null;
  }

  private void a(byte paramByte)
  {
    if ((this.g == 1) || (this.g == 2))
    {
      this.jdField_e_of_type_Byte = 0;
      this.f = paramByte;
    }
  }

  public final void c(int paramInt)
  {
    if (this.g == 1)
    {
      m = paramInt;
      o = m;
    }
  }

  public static boolean a()
  {
    return (m < o);
  }

  public static int a()
  {
    return m;
  }

  public final void d(int paramInt)
  {
    if (this.g == 1)
      return;
    if ((this.jdField_a_of_type_JavaUtilVector.size() > 0) && (this.jdField_a_of_type_JavaUtilVector.size() > paramInt))
      this.k = paramInt;
  }

  public final byte a()
  {
    return (byte)this.k;
  }

  static
  {
    jdField_i_of_type_Byte = 2;
  }
}

⌨️ 快捷键说明

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