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

📄 g.java

📁 很好的3款手机游戏源码
💻 JAVA
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 

import java.io.PrintStream;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;

public class g
{

	public static int a_int_static;
	public static Image a_javax_microedition_lcdui_Image_static;
	private static int b;
	private static boolean a_boolean_static;
	public static int a_int_array1d_static[];
	public static k a_k_static;

	public g()
	{
	}

	public static void a(int i1, int j1, int k1, int l1)
	{
		System.gc();
		if (e.a_boolean_static && n.a_javax_microedition_lcdui_Image_static == null)
		{
			n.a_javax_microedition_lcdui_Image_static = Image.createImage(e.a_int_static, e.b);
			n.a_javax_microedition_lcdui_Graphics_static = n.a_javax_microedition_lcdui_Image_static.getGraphics();
			n.a_int_static = n.a_javax_microedition_lcdui_Image_static.getWidth();
			n.b = n.a_javax_microedition_lcdui_Image_static.getHeight();
		}
		if (a_int_array1d_static == null)
			a_int_array1d_static = new int[2];
		n.a_z_static.a(i1, e.a_int_static, e.b, e.a_int_static / 2, e.b / 2, 2);
		j.a(j1, k1, l1);
		if (o.a == 5)
		{
			j.e();
			n.a_byte_static = 1;
			q.a(1);
		}
		n.a_z_static.c();
		o.d();
		boolean flag = false;
		int i2 = 0;
		do
		{
			if (i2 >= z.f_int_array2d_static.length)
				break;
			if (z.f_int_array2d_static[i2][0] == n.a_z_static.h)
			{
				flag = true;
				break;
			}
			i2++;
		} while (true);
		if (flag && a_javax_microedition_lcdui_Image_static == null)
			a_javax_microedition_lcdui_Image_static = t.a("/npc_Bubble.png");
		o.d();
		if (n.c)
		{
			if (i.a != null)
				i.a.e();
			a_k_static = new k("/tactic_BGM.mid", "audio/midi", true, true);
			if (!a_k_static.a)
				a_k_static.c();
		}
		n.a_boolean_static = true;
		n.d = n.a_z_static.e;
		n.e = n.a_z_static.f_int;
		e();
	}

	private static void e()
	{
		switch (n.a_z_static.h)
		{
		case 2: // '\002'
			l.a(3, 100, true, true, 0, n.a_z_static.b, n.a_z_static.a, 0, 0, 0, n.a_z_static.a, n.a_z_static.b);
			break;

		case 3: // '\003'
		case 4: // '\004'
			l.a(3, 300, true, true, 0, n.a_z_static.b, n.a_z_static.a, 0, 0, 0, n.a_z_static.a, n.a_z_static.b);
			break;

		case 6: // '\006'
		case 7: // '\007'
		case 10: // '\n'
		case 12: // '\f'
			l.a(1, 100, true, true, 0, n.a_z_static.b, n.a_z_static.a, 0, 0, 0, n.a_z_static.a, n.a_z_static.b);
			break;

		case 8: // '\b'
		case 9: // '\t'
			l.a(2, 150, true, false, 0, 0, (e.a_int_static * 3) / 2, 0, 0, 0, e.a_int_static, e.b);
			break;
		}
	}

	public static void a()
	{
		n.a_z_static.a();
		j.b();
		if (n.c)
		{
			a_k_static.e();
			a_k_static = null;
		}
		a_javax_microedition_lcdui_Image_static = null;
	}

	public static void a(Graphics g1)
	{
		g1.setClip(0, 0, e.a_int_static, e.b);
		g1.setColor(0);
		g1.fillRect(0, 0, e.b, e.b);
		if (e.a_boolean_static)
		{
			if (n.a_boolean_static)
			{
				n.a_javax_microedition_lcdui_Graphics_static.setClip(0, 0, n.a_javax_microedition_lcdui_Image_static.getWidth(), n.a_javax_microedition_lcdui_Image_static.getHeight());
				n.a_javax_microedition_lcdui_Graphics_static.setColor(0);
				n.a_javax_microedition_lcdui_Graphics_static.fillRect(0, 0, n.a_javax_microedition_lcdui_Image_static.getWidth(), n.a_javax_microedition_lcdui_Image_static.getHeight());
				n.a_z_static.a(n.a_javax_microedition_lcdui_Graphics_static, 0, 0);
				n.a_boolean_static = false;
				System.out.println("Buffer_Updated");
			} else
			{
				n.a_z_static.a(g1, 0, 0);
			}
			b(g1);
		} else
		{
			n.a_z_static.a(g1, 0, 0);
		}
		n.a_z_static.b(g1, 0, 0);
		c(g1);
		l.a(g1);
		n.a_z_static.a(g1);
		n.a(g1);
	}

	public static void b(Graphics g1)
	{
		g1.setClip(0, 0, e.a_int_static, e.b);
		g1.drawImage(n.a_javax_microedition_lcdui_Image_static, (n.d - n.a_z_static.e) + e.a_int_static / 2, (n.e - n.a_z_static.f_int) + e.b / 2, 3);
	}

	private static void c(Graphics g1)
	{
		int i1 = -1;
		boolean flag = false;
		for (int j1 = 0; j1 < z.f_int_array2d_static.length; j1++)
			if (n.a_z_static.h == z.f_int_array2d_static[j1][0] && z.f_int_array2d_static[j1][4] != 0 && n.a_z_static.e / 16 == z.f_int_array2d_static[j1][2] && n.a_z_static.f_int / 16 == z.f_int_array2d_static[j1][3])
			{
				flag = true;
				i1 = j1;
			}

		if (!flag && a_int_static != 0)
			i1 = a_int_static - 1;
		if (i1 != -1)
		{
			boolean flag1 = true;
			switch (z.f_int_array2d_static[i1][1])
			{
			case 5: // '\005'
				if (n.a_byte_static >= 4)
					flag1 = false;
				break;

			case 10: // '\n'
				if (n.a_byte_static >= 12)
					flag1 = false;
				break;
			}
			if (flag1)
			{
				g1.setClip(0, 0, e.a_int_static, e.b);
				g1.drawImage(a_javax_microedition_lcdui_Image_static, ((z.f_int_array2d_static[i1][2] * 16 + 8) - n.a_z_static.e) + e.a_int_static / 2, (((z.f_int_array2d_static[i1][3] * 16 - 36) + b) - n.a_z_static.f_int) + e.b / 2, 3);
			}
		}
	}

	public static void b()
	{
		if (q.a == 0)
		{
			j.r();
			switch (n.h)
			{
			case -6: 
				o.a(9, n.a_z_static.h, 7, 0);
				// fall through

			default:
				f();
				break;
			}
		}
	}

	private static void f()
	{
		switch (n.i)
		{
		default:
			break;

		case 8: // '\b'
		case 53: // '5'
			if (a_int_static > 0)
				switch (z.f_int_array2d_static[a_int_static - 1][1])
				{
				case 3: // '\003'
				default:
					break;

				case 0: // '\0'
					switch (n.a_byte_static)
					{
					default:
						q.a(-1);
						break;
					}
					break;

				case 1: // '\001'
					switch (n.a_byte_static)
					{
					case 4: // '\004'
						q.a(5);
						break;

					default:
						q.a(-2);
						break;
					}
					break;

				case 4: // '\004'
					switch (n.a_byte_static)
					{
					case 6: // '\006'
						q.a(7);
						break;

					default:
						q.a(-3);
						break;
					}
					break;

				case 6: // '\006'
					switch (n.a_byte_static)
					{
					case 8: // '\b'
						q.a(9);
						break;

					default:
						q.a(-4);
						break;
					}
					break;

				case 2: // '\002'
					q.a(-6);
					break;

				case 7: // '\007'
				case 9: // '\t'
					q.a(-5);
					break;

				case 8: // '\b'
					switch (n.a_byte_static)
					{
					default:
						q.a(-7);
						break;
					}
					break;

				case 5: // '\005'
					switch (n.a_byte_static)
					{
					case 2: // '\002'
						q.a(-10);
						break;
					}
					break;

				case 10: // '\n'
					switch (n.a_byte_static)
					{
					case 10: // '\n'
						q.a(-8);
						break;
					}
					break;

				case 11: // '\013'
					switch (n.a_byte_static)
					{
					case 12: // '\f'
						q.a(-9);
						break;
					}
					break;
				}
			break;
		}
	}

	public static void c()
	{
		if (q.a == 0)
			j.s();
	}

	public static void d()
	{
		n.a_z_static.b();
		j.m();
		h();
		g();
		l.c();
	}

	private static void g()
	{
		if (a_boolean_static)
		{
			if (b < 2)
				b++;
			else
				a_boolean_static = false;
		} else
		if (b > -1)
			b--;
		else
			a_boolean_static = true;
	}

	private static void h()
	{
		a_int_static = 0;
		for (int i1 = 0; i1 < z.f_int_array2d_static.length; i1++)
			if (n.a_z_static.h == z.f_int_array2d_static[i1][0] && z.f_int_array2d_static[i1][4] != 0 && n.a(j.a, j.b, z.f_int_array2d_static[i1][2] * 16 + 8, z.f_int_array2d_static[i1][3] * 16 + 8) <= 16)
			{
				a_int_static = i1 + 1;
				switch (z.f_int_array2d_static[i1][1])
				{
				default:
					break;

				case 5: // '\005'
					if (n.a_byte_static >= 4)
						a_int_static = 0;
					break;

				case 10: // '\n'
					if (n.a_byte_static >= 12)
						a_int_static = 0;
					break;
				}
				return;
			}

	}
}

⌨️ 快捷键说明

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