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

📄 bj.java

📁 现在非常流行的手机网游的源码,可以下载来学习学习.
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
    switch (this.jdField_t_of_type_Byte)
    {
    case 1:
      this.jdField_m_of_type_Int -= jdField_a_of_type_Array2dOfByte[this.jdField_u_of_type_Byte][1];
      return;
    case 2:
      this.jdField_m_of_type_Int += jdField_a_of_type_Array2dOfByte[this.jdField_u_of_type_Byte][1];
      return;
    case 3:
      this.jdField_l_of_type_Int -= jdField_a_of_type_Array2dOfByte[this.jdField_u_of_type_Byte][0];
      return;
    case 4:
      this.jdField_l_of_type_Int += jdField_a_of_type_Array2dOfByte[this.jdField_u_of_type_Byte][0];
      return;
    case 5:
      this.jdField_l_of_type_Int -= jdField_a_of_type_Array2dOfByte[this.jdField_u_of_type_Byte][2];
      this.jdField_m_of_type_Int -= jdField_a_of_type_Array2dOfByte[this.jdField_u_of_type_Byte][3];
      return;
    case 6:
      this.jdField_l_of_type_Int += jdField_a_of_type_Array2dOfByte[this.jdField_u_of_type_Byte][2];
      this.jdField_m_of_type_Int -= jdField_a_of_type_Array2dOfByte[this.jdField_u_of_type_Byte][3];
      return;
    case 7:
      this.jdField_l_of_type_Int -= jdField_a_of_type_Array2dOfByte[this.jdField_u_of_type_Byte][2];
      this.jdField_m_of_type_Int += jdField_a_of_type_Array2dOfByte[this.jdField_u_of_type_Byte][3];
      return;
    case 8:
      this.jdField_l_of_type_Int += jdField_a_of_type_Array2dOfByte[this.jdField_u_of_type_Byte][2];
      this.jdField_m_of_type_Int += jdField_a_of_type_Array2dOfByte[this.jdField_u_of_type_Byte][3];
      return;
    }
    System.out.println("Error!! GameObj : tickMove()");
  }

  private boolean a()
  {
    if (this.jdField_p_of_type_Int == this.jdField_n_of_type_Int)
    {
      if (this.jdField_q_of_type_Int > this.jdField_o_of_type_Int)
      {
        j.a();
        if (j.a(this.jdField_o_of_type_Int + 1, this.jdField_n_of_type_Int))
        {
          c(8);
          return true;
        }
        if (!(a(7, 1, 6, 1)))
          break label235;
        return true;
      }
      if (this.jdField_q_of_type_Int >= this.jdField_o_of_type_Int)
        break label235;
      j.a();
      if (j.a(this.jdField_o_of_type_Int - 1, this.jdField_n_of_type_Int))
      {
        c(5);
        return true;
      }
      if (!(a(7, 1, 6, 1)))
        break label235;
      return true;
    }
    if (this.jdField_q_of_type_Int != this.jdField_o_of_type_Int)
      break label235;
    if (this.jdField_p_of_type_Int > this.jdField_n_of_type_Int)
    {
      j.a();
      if (j.a(this.jdField_o_of_type_Int, this.jdField_n_of_type_Int + 1))
      {
        c(7);
        return true;
      }
      if (!(a(5, 0, 8, 0)))
        break label235;
      return true;
    }
    if (this.jdField_p_of_type_Int >= this.jdField_n_of_type_Int)
      break label235;
    j.a();
    if (j.a(this.jdField_o_of_type_Int, this.jdField_n_of_type_Int - 1))
    {
      c(6);
      return true;
    }
    label235: return (a(5, 0, 8, 0));
  }

  private static boolean a(int paramInt1, int paramInt2, int paramInt3)
  {
    switch (paramInt3)
    {
    case 1:
      j.a();
      if (j.a(paramInt2 - 1, paramInt1))
        break label152;
      j.a();
      if (j.a(paramInt2, paramInt1 - 1))
        break label152;
      return true;
    case 2:
      j.a();
      if (j.a(paramInt2 + 1, paramInt1))
        break label152;
      j.a();
      if (j.a(paramInt2, paramInt1 + 1))
        break label152;
      return true;
    case 3:
      j.a();
      if (j.a(paramInt2 - 1, paramInt1))
        break label152;
      j.a();
      if (j.a(paramInt2, paramInt1 + 1))
        break label152;
      return true;
    case 4:
      j.a();
      if (j.a(paramInt2 + 1, paramInt1))
        break label152;
      j.a();
      if (j.a(paramInt2, paramInt1 - 1))
        break label152;
      return true;
    }
    label152: return false;
  }

  private boolean b()
  {
    for (int i1 = 0; i1 < 20; ++i1)
    {
      if ((this.jdField_p_of_type_Int - i1 == this.jdField_n_of_type_Int) && (this.jdField_q_of_type_Int - i1 == this.jdField_o_of_type_Int))
      {
        if (a(2))
        {
          if (a(this.jdField_n_of_type_Int, this.jdField_o_of_type_Int, 2))
            break label77:
          return true;
        }
        return (a(7, 0, 8, 1));
      }
      if ((this.jdField_p_of_type_Int + i1 == this.jdField_n_of_type_Int) && (this.jdField_q_of_type_Int + i1 == this.jdField_o_of_type_Int))
      {
        if (a(1))
        {
          if (a(this.jdField_n_of_type_Int, this.jdField_o_of_type_Int, 1))
            label77: break label284:
          return true;
        }
        if (!(a(5, 1, 6, 0)))
          break label284;
        return true;
      }
      if ((this.jdField_p_of_type_Int - i1 == this.jdField_n_of_type_Int) && (this.jdField_q_of_type_Int + i1 == this.jdField_o_of_type_Int))
      {
        if (a(3))
        {
          if (a(this.jdField_n_of_type_Int, this.jdField_o_of_type_Int, 3))
            break label284:
          return true;
        }
        if (!(a(5, 1, 7, 0)))
          break label284;
        return true;
      }
      if ((this.jdField_p_of_type_Int + i1 == this.jdField_n_of_type_Int) && (this.jdField_q_of_type_Int - i1 == this.jdField_o_of_type_Int))
      {
        if (a(4))
        {
          if (a(this.jdField_n_of_type_Int, this.jdField_o_of_type_Int, 4))
            break label284:
          return true;
        }
        label284: if (a(8, 1, 6, 0))
          return true;
      }
    }
    return false;
  }

  private void e()
  {
    if ((!(b())) && (!(a())))
    {
      if (this.jdField_b_of_type_Byte == 1)
      {
        if (this.jdField_q_of_type_Int > this.jdField_o_of_type_Int)
        {
          if ((a(8)) || (a(6, 1, 6, 1)))
            return;
          c(a());
          return;
        }
        if ((this.jdField_q_of_type_Int >= this.jdField_o_of_type_Int) || (a(5)) || (a(7, 1, 6, 1)))
          return;
        c(a());
        return;
      }
      if (this.jdField_b_of_type_Byte == 0)
      {
        if (this.jdField_p_of_type_Int > this.jdField_n_of_type_Int)
        {
          if ((a(7)) || (a(5, 0, 8, 0)))
            return;
          c(a());
          return;
        }
        if ((this.jdField_p_of_type_Int < this.jdField_n_of_type_Int) && (!(a(6))) && (!(a(5, 0, 8, 0))))
          c(a());
      }
    }
  }

  private boolean a(byte paramByte1, byte paramByte2)
  {
    int i1 = this.jdField_o_of_type_Int + jdField_c_of_type_Array2dOfByte[paramByte1][0];
    int i2 = this.jdField_n_of_type_Int + jdField_c_of_type_Array2dOfByte[paramByte1][1];
    j.a();
    if (j.a(i1, i2))
    {
      c(paramByte1);
      this.jdField_b_of_type_Byte = paramByte2;
      return true;
    }
    return false;
  }

  private boolean a(byte paramByte1, byte paramByte2, byte paramByte3, byte paramByte4)
  {
    if ((al.a(2) == 0) && (a(paramByte1, paramByte2)))
      return true;
    if (a(paramByte3, paramByte4))
      return true;
    return (a(paramByte1, paramByte2));
  }

  private boolean a(byte paramByte)
  {
    j.a();
    if (j.a(this.jdField_o_of_type_Int + jdField_c_of_type_Array2dOfByte[paramByte][0], this.jdField_n_of_type_Int + jdField_c_of_type_Array2dOfByte[paramByte][1]))
    {
      int i1 = 1;
      switch (paramByte)
      {
      case 2:
        j.a();
        if (!(j.a(this.jdField_o_of_type_Int + jdField_c_of_type_Array2dOfByte[7][0], this.jdField_n_of_type_Int + jdField_c_of_type_Array2dOfByte[7][1])))
        {
          j.a();
          if (!(j.a(this.jdField_o_of_type_Int + jdField_c_of_type_Array2dOfByte[8][0], this.jdField_n_of_type_Int + jdField_c_of_type_Array2dOfByte[8][1])))
            i1 = 0;
        }
        break;
      case 3:
        j.a();
        if (!(j.a(this.jdField_o_of_type_Int + jdField_c_of_type_Array2dOfByte[7][0], this.jdField_n_of_type_Int + jdField_c_of_type_Array2dOfByte[7][1])))
        {
          j.a();
          if (!(j.a(this.jdField_o_of_type_Int + jdField_c_of_type_Array2dOfByte[5][0], this.jdField_n_of_type_Int + jdField_c_of_type_Array2dOfByte[5][1])))
            i1 = 0;
        }
        break;
      case 1:
        j.a();
        if (!(j.a(this.jdField_o_of_type_Int + jdField_c_of_type_Array2dOfByte[5][0], this.jdField_n_of_type_Int + jdField_c_of_type_Array2dOfByte[5][1])))
        {
          j.a();
          if (!(j.a(this.jdField_o_of_type_Int + jdField_c_of_type_Array2dOfByte[6][0], this.jdField_n_of_type_Int + jdField_c_of_type_Array2dOfByte[6][1])))
            i1 = 0;
        }
        break;
      case 4:
        j.a();
        if (!(j.a(this.jdField_o_of_type_Int + jdField_c_of_type_Array2dOfByte[6][0], this.jdField_n_of_type_Int + jdField_c_of_type_Array2dOfByte[6][1])))
        {
          j.a();
          if (!(j.a(this.jdField_o_of_type_Int + jdField_c_of_type_Array2dOfByte[8][0], this.jdField_n_of_type_Int + jdField_c_of_type_Array2dOfByte[8][1])))
            i1 = 0;
        }
      }
      if (i1 != 0)
      {
        c(paramByte);
        return true;
      }
    }
    return false;
  }

  private byte a()
  {
    for (int i1 = 1; i1 < jdField_c_of_type_Array2dOfByte.length; ++i1)
    {
      j.a();
      if (j.a(this.jdField_o_of_type_Int + jdField_c_of_type_Array2dOfByte[i1][0], this.jdField_n_of_type_Int + jdField_c_of_type_Array2dOfByte[i1][1]))
        return (byte)i1;
    }
    return -1;
  }

  public void b()
  {
    if (this.jdField_d_of_type_Array2dOfShort == null)
      return;
    if ((this.jdField_h_of_type_Byte == 2) || (this.jdField_i_of_type_Byte >= 40))
      f();
    else if ((this.jdField_h_of_type_Byte == 1) || (this.jdField_h_of_type_Byte == 4))
      g();
    if (this.jdField_s_of_type_Byte < this.jdField_d_of_type_Array2dOfShort[this.jdField_r_of_type_Byte].length - 1)
    {
      bj tmp72_71 = this;
      tmp72_71.jdField_s_of_type_Byte = (byte)(tmp72_71.jdField_s_of_type_Byte + 1);
      return;
    }
    switch (this.jdField_q_of_type_Byte)
    {
    case 0:
      this.jdField_s_of_type_Byte = 0;
      return;
    case 2:
    case 31:
    case 32:
    case 33:
    case 34:
    case 35:
    case 36:
    case 37:
    case 38:
    case 39:
    case 40:
    case 41:
    case 42:
    case 43:
    case 44:
    case 45:
      b(0);
      break;
    case 1:
      this.jdField_s_of_type_Byte = 0;
      return;
    case 6:
      b(0);
      break;
    case 8:
      this.jdField_s_of_type_Byte = 0;
      b(0);
      return;
    case 4:
      this.jdField_s_of_type_Byte = 0;
      b(5);
      return;
    case 7:
      this.jdField_s_of_type_Byte = 0;
      return;
    case 5:
      this.jdField_s_of_type_Byte = 0;
    case 3:
    case 9:
    case 10:
    case 11:
    case 12:
    case 13:

⌨️ 快捷键说明

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