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

📄 k.java

📁 j2me 武林传之刀剑江湖录[前篇]反编译源代码
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
			g1.setFont(g.a);
			String s1 = "载入中";
			for (int j1 = 0; j1 < D / 3; j1++)
				s1 = s1 + " .";

			u.a(g1, s1, 240 - g1.getFont().charWidth('W') * 7, 315, 36, 0xffffff, 0x5d5959);
			D++;
			if (D > 11)
				D = 0;
		}
	}

	private static void U()
	{
		a.a();
	}

	private static void V()
	{
		a.a();
	}

	private static void W()
	{
		D++;
		au();
		av();
		aw();
		at();
		h.a(ao, ap, false);
		ax();
		if (ay >= 0)
		{
			a((byte)41);
			return;
		}
		if (a.c(4096))
		{
			a((byte)7);
			return;
		}
		if (a.c(8192))
		{
			a((byte)14);
			a.a();
		}
	}

	private static void q(Graphics g1)
	{
		a(g1);
		g1.setClip(0, 0, 240, 320);
		u.a(g1, "百宝阁", 240, 320, 40, 0xffffff, 0);
		if (dO > 0)
		{
			dO--;
			o.a(g1, "剩余" + dP + "次存档机会", null, null);
		}
		u.a(g1, "点击右软键进入百宝阁,立即拥有极品装备!", bf, 320 - g.d - 1, 36, 0xffff00, 0);
		bf -= 3;
		if (bf < -("点击右软键进入百宝阁,立即拥有极品装备!".length() * g.e))
			bf = 290;
	}

	private static void X()
	{
		a = b;
		bR = 0;
		Object obj = null;
		for (short word0 = 0; word0 < u.length; word0++)
		{
			y y1;
			if ((y1 = u[word0]) != null)
				y1.N = -1;
		}

		for (int i1 = 0; i1 < 1; i1++)
			if (q[i1] != null)
				q[i1].N = -1;

		az = 0;
		aA = 0;
		for (int j1 = 0; j1 < aD[ay]; j1++)
		{
			int k1;
			y y2;
			if ((y2 = c(k1 = aE[ay][j1])) == null)
			{
				System.out.println("InitCurrentTrailer():actor=null, actorID=" + k1);
				continue;
			}
			if (k1 >= 2)
				bS[bR++] = (short)k1;
			y2.a(8);
			y2.a(16);
			y2.N = j1;
			y2.O = 0;
			y2.q();
		}

	}

	private static void Y()
	{
		a = 70L;
		bR = 0;
		ay = -1;
		az = -1;
		aG.a(256);
		aG.b(8);
		aG.b(16);
		aG = null;
		if (((y) (s)).N >= 0)
			s.b((short)0);
	}

	private static void Z()
	{
		au();
		av();
		aw();
		aA += 3;
		az++;
		if (az >= aC[ay])
			a(A);
		else
			at();
		h.a(ao, ap, true);
		ax();
		l();
	}

	private static void r(Graphics g1)
	{
		a(g1);
		e(g1);
	}

	private static void aa()
	{
		cl = 0;
		cm = 0;
		a(new int[] {
			((y) (s)).f[1]
		});
		ci = false;
		cj = false;
		if (K)
		{
			N = u.b(Q[4]);
			O = 4;
			P = 1;
		}
	}

	private static void ab()
	{
		c();
	}

	private static void ac()
	{
		if ((G & 8) == 8 && cT == 255)
		{
			ci = true;
			if (D > 15)
			{
				ci = false;
				cT = 0;
				G &= -9;
				a((byte)2);
			}
		}
	}

	private static void s(Graphics g1)
	{
		a(g1);
		if (ci)
		{
			cl += 6;
			if (cl > g1.getFont().getHeight() * 8)
			{
				cl = g1.getFont().getHeight() * 8;
				cj = true;
			}
			boolean flag = false;
			int i1 = 15;
			g1.setClip(210, 15, 30, cl);
			for (int k1 = 0; k1 < ck[0].length(); k1++)
			{
				u.a(g1, ck[0].charAt(k1) + "", 210, i1, 20, 0xff0000, 0x5d5959);
				i1 += g1.getFont().getHeight() + 2;
			}

		}
		if (cj)
		{
			cm += 6;
			if (cm > g1.getFont().getHeight() * 8)
			{
				cm = g1.getFont().getHeight() * 8;
				D++;
			}
			int j1 = 15;
			g1.setClip(180, 15, 30, cm);
			for (int l1 = 0; l1 < ck[1].length(); l1++)
			{
				u.a(g1, ck[1].charAt(l1) + "", 180, j1, 20, 0xff0000, 0x5d5959);
				j1 += g1.getFont().getHeight() + 2;
			}

		}
	}

	private static void ad()
	{
		co = 0;
		cp = 0xffffff;
		if (K)
		{
			N = u.b(Q[15]);
			O = 15;
			P = 1;
		}
	}

	private static void ae()
	{
		if (a.c())
		{
			a((byte)2);
			a.a();
		}
	}

	private static void t(Graphics g1)
	{
		a(g1, 0);
		g1.setFont(g.a);
		g1.setColor(co);
		u.a(g1, cn[cq], 0, new int[] {
			0, 24, 106, 192, 106
		}, 17);
		if (D == 0)
		{
			if (co < cp)
			{
				co += 0x111111;
				if (co >= cp)
					co = cp;
			} else
			if (co > cp)
			{
				co -= 0x111111;
				if (co <= cp)
					co = cp;
			}
			if (co == 0xffffff)
			{
				cp = 0;
				D = 10;
				return;
			}
			if (co == 0)
			{
				cp = 0xffffff;
				cq++;
				if (cq >= cn.length)
				{
					a((byte)2);
					return;
				}
			}
		} else
		if (D > 0)
			D--;
	}

	private static void af()
	{
		a.a();
		o.a(s);
		o.a(3);
	}

	private static void ag()
	{
		o.c();
	}

	private static void u(Graphics g1)
	{
		a(g1, 0);
		o.a(g1);
	}

	private static void ah()
	{
		af = c(cv);
		short word0;
		if ((word0 = dn.f[5]) < db)
		{
			cz = de[cy];
			cB = df[cy];
		} else
		{
			cz = di[cy];
			cB = dj[cy];
		}
		cA = cB.length / 3;
		cE = 0;
		cF = cz.length();
		cC = 0xffffff;
		switch (cu)
		{
		case 0: // '\0'
		case 1: // '\001'
			cG = cw != 0 ? o.b(0x40001) : o.b(0x40000);
			return;

		case 2: // '\002'
			cJ = 1;
			cI = 1;
			for (int i1 = 0; i1 < cA; i1++)
				if (cB[i1 * 3 + 1] == 0 || cB[i1 * 3 + 1] == 6)
					cI++;

			cK = new int[cI + 1];
			cK[cI] = cz.length();
			int j1 = 1;
			for (int k1 = 0; k1 < cA; k1++)
				if (cB[k1 * 3 + 1] == 0 || cB[k1 * 3 + 1] == 6)
					cK[j1++] = cB[k1 * 3 + 0];

			cL = cB[1] == 6;
			int ai1[][];
			cG = new int[(ai1 = o.b(0x40003)).length][5];
			for (int l1 = 0; l1 < ai1.length; l1++)
				System.arraycopy(ai1[l1], 0, cG[l1], 0, ai1[l1].length);

			if (cI > 2)
			{
				cG[0][2] = ai1[0][2] - g.d * (cI - (cL ? 0 : 1) - 3);
				return;
			}
			break;

		case 3: // '\003'
			cG = o.b(0x40002);
			cC = 0x75f2dc;
			break;
		}
	}

	private static void ai()
	{
		if (af != null)
		{
			af.d(-1);
			af = null;
		}
		cz = null;
		cA = 0;
		cB = null;
		cG = (int[][])null;
		cK = null;
	}

	private static void aj()
	{
		switch (cu)
		{
		case 1: // '\001'
			if (a.c(16384))
			{
				cH = 0;
			} else
			{
				cH++;
				if (cH > 18)
				{
					cH = 0;
					a.a |= 0x4000;
				}
			}
			break;

		case 2: // '\002'
			if (a.c(2))
			{
				cJ++;
				if (cJ >= cI)
					cJ = 1;
				a.a();
			} else
			if (a.c(1))
			{
				cJ--;
				if (cJ <= 0)
					cJ = cI - 1;
				a.a();
			}
			break;
		}
		if (a.c(16384))
		{
			if (cF == cz.length())
			{
				a((byte)8);
			} else
			{
				cE = cF;
				cF = cz.length();
				cC = cD;
			}
			a.a();
		}
	}

	private static void v(Graphics g1)
	{
		a(g1);
		Object obj = null;
		switch (cu)
		{
		case 0: // '\0'
		case 1: // '\001'
			if (cw == 0)
			{
				a(g1, cx - 1, cG[3][1] + (cG[3][3] >> 1), cG[3][2] + (cG[3][4] >> 1));
				o.c(g1, 0x40000);
				String s1 = f(af.g[19]);
				g1.setColor(0xffffff);
				g1.drawString(s1, cG[1][1] + cG[1][3] / 2, cG[1][2] + (cG[1][4] - g1.getFont().getHeight()) / 2, 17);
				a(g1, 2, -1, cG[2]);
				return;
			} else
			{
				a(g1, cx - 1, cG[3][1] + (cG[3][3] >> 1), cG[3][2] + (cG[3][4] >> 1));
				o.c(g1, 0x40001);
				String s2 = f(af.g[19]);
				g1.setColor(0xffffff);
				g1.drawString(s2, cG[1][1] + cG[1][3] / 2, cG[1][2] + (cG[1][4] - g1.getFont().getHeight()) / 2, 17);
				a(g1, 2, -1, cG[2]);
				return;
			}

		case 2: // '\002'
			o.c(g1, 0x40003);
			int ai1[] = null;
			int i1 = (ai1 = cG[1])[1];
			int j1 = ai1[2];
			int k1 = ai1[3];
			boolean flag = false;
			for (int l1 = cL ? 0 : 1; l1 < cI; l1++)
			{
				if (cJ == l1)
				{
					g1.setColor(0x1d4d5b);
					g1.fillRect(i1, j1, k1, g.d);
					g1.setColor(0xffe2b2a4);
				} else
				{
					g1.setColor(cC);
				}
				String s3 = cz.substring(cK[l1], cK[l1 + 1]);
				if (cJ == l1 && g.a.stringWidth(s3) >= k1)
				{
					u.a(g1, s3, i1, j1, k1, g.d);
				} else
				{
					g1.setClip(i1, j1, k1, g.d);
					g1.drawString(s3, i1, j1, 20);
					g1.setClip(0, 0, 240, 320);
				}
				j1 += g.d;
			}

			return;

		case 3: // '\003'
			o.c(g1, 0x40002);
			a(g1, 2, -1, cG[1]);
			break;
		}
	}

	private static void a(Graphics g1, int i1, int j1, int ai1[])
	{
		int k1 = ai1[1];
		int l1 = ai1[2];
		int i2 = 0;
		if (j1 > 0)
		{
			g1.setColor(0x1d4d5b);
			g1.fillRect(k1, l1 + j1 * g.d, ai1[3], g.d);
		}
		g1.setColor(cC);
		for (int j2 = cE; j2 < cF; j2++)
		{
			boolean flag = false;
			int k2 = 0;
			int l2 = 0;
			do
			{
				if (l2 >= cA)
					break;
				if (j2 == cB[k2 + 0])
				{
					short word0;
					short word1;
					short word2;
					switch (cB[k2 + 1])
					{
					case 0: // '\0'
						flag = true;
						break;

					case 1: // '\001'
						if ((word0 = cB[k2 + 2]) == -1)
							g1.setColor(0xffffff);
						else
							g1.setColor(cr[word0]);
						break;

					case 2: // '\002'
						if ((word1 = cB[k2 + 2]) == -1)
						{
							g1.setFont(g.a);
						} else
						{
							int i3 = g1.getFont().getHeight();
							g1.setFont(cs[word1]);
							int j3 = g1.getFont().getHeight();
							l1 -= j3 - i3 >> 1;
						}
						break;

					case 4: // '\004'
						if ((word2 = cB[k2 + 2]) == -1)
							af.d(ct[word2]);
						else
							af.d(-1);
						break;

					case 3: // '\003'
					default:
						System.out.println("matchDialogSign():no match the dialog text sign = " + cB[l2 + 1]);
						break;

					case 5: // '\005'
					case 6: // '\006'
						break;
					}
					break;
				}
				k2 += 3;
				l2++;
			} while (true);
			char c1 = cz.charAt(j2);
			if (flag || k1 + g1.getFont().charWidth(c1) > ai1[1] + ai1[3])
			{
				i2++;
				k1 = ai1[1];
				l1 += g.d;
				if (i2 >= i1)
				{
					cF = j2;
					continue;
				}
			}
			g1.drawChar(c1, k1, l1, 20);
			k1 += g1.getFont().charWidth(c1);
			if (j2 == cz.length() - 1)
				cF = cz.length();
		}

		cD = g1.getColor();
	}

	public static final void a(Graphics g1, int i1, int j1, int k1)
	{
		if (i1 < 0)
			return;
		byte byte0;
		if ((byte0 = j[4]) < 0 || byte0 > y.e.length)
			return;
		z z1;
		if ((z1 = y.e[byte0]) == null)
		{
			System.out.println(">>drawPublicFrame(): Cant paint! maybe you don't set \"Pack Anim?\" to \"No\"!! Or you dont select this animation into this scene! Or has error in load animation");
			return;
		}
		if (cM == null)
			cM = new short[z1.b][2];
		z1.a((short)i1, cM[i1]);
		z1.b(g1, i1, cM[i1][0], j1, k1, false);
	}

	private static void ak()
	{
		a.a();
		o.a(s);
		o.a(cN);
		o.a(9);
	}

	private static void al()
	{
		o.c();
	}

	private static void w(Graphics g1)
	{
		a(g1, 0);
		o.a(g1);
	}

	private static void am()
	{
		cQ = ao + 120;
		cR = ap + 160;
	}

	private static void an()
	{
		int ai1[] = new int[8];
		for (int i1 = 4; i1 > -1; i1--)
		{
			ai1[0] = Math.abs(cO - (cQ - 1)) + Math.abs(cP - cR);
			ai1[1] = Math.abs(cO - (cQ + 1)) + Math.abs(cP - cR);
			ai1[2] = Math.abs(cO - cQ) + Math.abs(cP - (cR - 1));
			ai1[3] = Math.abs(cO - cQ) + Math.abs(cP - (cR + 1));
			ai1[4] = Math.abs(cO - (cQ - 1)) + Math.abs(cP - (cR - 1));
			ai1[5] = Math.abs(cO - (cQ - 1)) + Math.abs(cP - (cR + 1));
			ai1[6] = Math.abs(cO - (cQ + 1)) + Math.abs(cP - (cR + 1));
			ai1[7] = Math.abs(cO - (cQ + 1)) + Math.abs(cP - (cR - 1));
			int j1 = 0;
			for (int k1 = ai1.length - 1; k1 >= 0; k1--)
				if (ai1[k1] < ai1[j1])
					j1 = k1;

			switch (j1)
			{
			case 0: // '\0'
				cQ--;
				break;

			case 1: // '\001'
				cQ++;
				break;

			case 2: // '\002'
				cR--;
				break;

			case 3: // '\003'
				cR++;
				break;

			case 4: // '\004'
				cQ--;
				cR--;
				break;

			case 5: // '\005'
				cQ--;
				cR++;
				break;

			case 6: // '\006'
				cQ++;
				cR++;
				break;

			case 7: // '\007'
				cQ++;
				cR--;
				break;
			}
		}

		j(cQ, cR);
		h.a(ao, ap, false);
		if (Math.abs(cQ - cO) + Math.abs(cR - cP) < 1)
			a((byte)8);
	}

	private static void x(Graphics g1)
	{
		a(g1);
	}

	private static final void n(int i1)
	{
		G |= i1;
	}

	private static void e(int i1, int j1)
	{
		cU = 17850 / j1;
		cT = i1 != 8 ? 255 : 0;

⌨️ 快捷键说明

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