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

📄 i.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 javax.microedition.lcdui.*;

public class i
{

	public static i a_i_static;
	private static Image a_javax_microedition_lcdui_Image_static;
	public static ab a_ab_static;
	private static int c_int_static;
	public static int a_int_static;
	private static int d_int_static;
	public static int b_int_static;
	private static int e;
	private static int f;
	public static k a_k_static;
	private static int g;
	private static int h;
	private static boolean a_boolean_static;
	private static boolean b_boolean_static;
	private static int i;
	private static int j;
	private static int k;
	private static int l;
	private static boolean c_boolean_static;
	private static boolean d_boolean_static;
	private static int m;
	private static int n;
	private static final int o;
	public static String a_java_lang_String_array1d_static[];
	public static byte a_byte_array1d_static[];
	public static byte b_byte_array1d_static[];
	private static int p;
	private static int q;
	private static int r;
	private static int s;

	public i()
	{
		a_i_static = this;
	}

	public static void a()
	{
		if (n.i_javax_microedition_lcdui_Image_static == null)
			n.i_javax_microedition_lcdui_Image_static = t.a("/alpha_Selected.png");
		a_java_lang_String_array1d_static = new String[6];
		a_byte_array1d_static = new byte[6];
		b_byte_array1d_static = new byte[6];
		a_ab_static = new ab();
		for (int i1 = 0; i1 < 6; i1++)
			n.a(i1 + 1);

		n.d();
		if (n.b_p_static == null)
			n.b_p_static = new p("/story.txt");
		if (n.c_p_static == null)
		{
			n.c_p_static = new p("/tactic.txt");
			o.d();
		}
		c_int_static = 1;
		a_int_static = 0;
		d_int_static = 0;
		f = 0;
		if (a_javax_microedition_lcdui_Image_static == null)
			a_javax_microedition_lcdui_Image_static = t.a("/menu_Back.png");
		o.d();
		if (n.f > 0)
		{
			n.b(n.f);
		} else
		{
			n.f = 1;
			n.b_byte_static = 0;
			n.a_java_lang_String_static = "杨戬";
		}
		if (n.c_boolean_static)
		{
			a_k_static = new k("/menu_BGM.mid", "audio/midi", true, false);
			if (!a_k_static.a)
				a_k_static.c();
		}
		m = o;
		n = o;
		g = 24;
		k = 24;
		j = n.a_p_static.a("help.sum");
	}

	public static void b()
	{
		a_javax_microedition_lcdui_Image_static = null;
		n.i_javax_microedition_lcdui_Image_static = null;
	}

	public static void a(Graphics g1)
	{
		g1.setClip(0, 0, e.a, e.b);
		g1.drawImage(a_javax_microedition_lcdui_Image_static, e.a / 2, e.b / 2, 3);
		String s1 = n.a_p_static.a("menu.cool");
		n.a_y_static.a(s1);
		n.a_y_static.a(2, 2, g1);
		g1.setClip(0, 0, e.a, e.b);
		g1.drawImage(n.i_javax_microedition_lcdui_Image_static, e.a / 2, (m + (c_int_static - 1) * (e.d + 1) + e.d / 2) - 2, 3);
		for (int i1 = -2; i1 <= 2; i1++)
		{
			if (c_int_static + i1 <= 0 || c_int_static + i1 > n.a_p_static.a("menuRes.menu_Sum"))
				continue;
			String s2;
			if (c_int_static + i1 == 1)
			{
				String s3;
				if (n.a_java_lang_String_static != null)
					s3 = n.a_java_lang_String_static;
				else
					s3 = "";
				s2 = s3 + n.a_p_static.a("menuRes.menu_Txt_1");
			} else
			{
				s2 = n.a_p_static.a("menuRes.menu_Txt_" + (c_int_static + i1));
			}
			n.a(g1, s2, 10, 17, e.a / 2 + 1, n + ((i1 + c_int_static) - 1) * (e.d + 1), 1, 0, m + (c_int_static - 2) * (e.d + 1), e.a, (e.d + 1) * 3, 0xffffff, true, 0);
		}

		switch (a_int_static)
		{
		case 4: // '\004'
			g(g1);
			break;

		case 2: // '\002'
			c(g1);
			break;

		case 3: // '\003'
			e(g1);
			break;

		case 5: // '\005'
			f(g1);
			break;

		case 7: // '\007'
			b(g1);
			break;
		}
	}

	private static void b(Graphics g1)
	{
		n.a(g1, e.a / 2, e.b / 2, e.c * 6 + 2, e.d * 2, true);
		for (int i1 = 0; i1 < 2; i1++)
			n.a(g1, n.a_p_static.a("menuRes.new_Profile_" + i1), 6, 17, e.a / 2, (e.b / 2 - e.d) + 2 + i1 * e.d, 1, 0, 0, e.a, e.b, 0xffffff, true, 0);

	}

	private static void c(Graphics g1)
	{
		int i1 = e.c * 6 + 2;
		int j1 = e.d * 6 + 2;
		int k1 = e.a / 2 - i1 / 2;
		int l1 = e.b / 2 - j1 / 2;
		n.a(g1, k1 + i1 / 2, l1 + j1 / 2, i1, j1, true);
		n.a(g1, k1 + 16, l1 + 1 + q, i1 - 32, e.d);
		for (int i2 = 0; i2 < 6; i2++)
			if (a_java_lang_String_array1d_static[i2] != null)
				n.a(g1, a_java_lang_String_array1d_static[i2], b_byte_array1d_static[i2], k1 + 4, l1 + 1 + i2 * e.d, i1 - 8, 0xffffff, 0, 0);
			else
				n.a(g1, n.a_p_static.a("menuRes.no_Profile"), 6, 17, k1 + i1 / 2, l1 + 1 + i2 * e.d, 1, 0, false, 0);

		switch (b_int_static)
		{
		case 1: // '\001'
			d(g1);
			break;
		}
	}

	private static void d(Graphics g1)
	{
		n.a(g1, (e.a * 3) / 4, (e.b / 2 - (e.d * 6) / 2) + (p + 2) * e.d, e.c * 2, e.d * 3, true);
		n.a(g1, (e.a * 3) / 4 - 8, (((e.b / 2 - (e.d * 6) / 2) + (p + 2) * e.d) - (e.d * 3) / 2) + 1 + s, 16, e.d - 1);
		String s1 = "";
		if (a_java_lang_String_array1d_static[p] == null)
			s1 = n.a_p_static.a("menuRes.profile_Option_Build");
		else
			s1 = n.a_p_static.a("menuRes.profile_Option_ReBuild");
		n.a(g1, s1, 2, 17, (e.a * 3) / 4, (((e.b / 2 - (e.d * 6) / 2) + (p + 2) * e.d) - (e.d * 3) / 2) + 1, 1, 0xffffff, true, 0);
		if (a_java_lang_String_array1d_static[p] != null)
			n.a(g1, n.a_p_static.a("menuRes.profile_Option_Read"), 2, 17, (e.a * 3) / 4, (((e.b / 2 - (e.d * 6) / 2) + (p + 2) * e.d) - (e.d * 3) / 2) + 1 + e.d, 1, 0xffffff, true, 0);
		n.a(g1, n.a_p_static.a("menuRes.profile_Option_Back"), 2, 17, (e.a * 3) / 4, (((e.b / 2 - (e.d * 6) / 2) + (p + 2) * e.d) - (e.d * 3) / 2) + 1 + e.d * 2, 1, 0xffffff, true, 0);
	}

	private static void e(Graphics g1)
	{
		n.a(g1, e.a / 2, e.b / 2, e.a - 32, e.b - 32, true);
		g1.setClip(e.a / 2 - 4, 16, 7, 7);
		g1.drawImage(n.e, e.a / 2 - 4 - 7, 16, 0);
		g1.setClip(e.a / 2 - 4, e.b - 16 - 4, 7, 7);
		g1.drawImage(n.e, e.a / 2 - 4, e.b - 16 - 4, 0);
		if (i > 0)
		{
			g1.setClip(12, e.b / 2 - 4, 7, 7);
			g1.drawImage(n.e, -9, e.b / 2 - 4, 0);
		}
		if (i < j - 1)
		{
			g1.setClip(e.a - 16 - 4, e.b / 2 - 4, 7, 7);
			g1.drawImage(n.e, e.a - 16 - 4 - 14, e.b / 2 - 4, 0);
		}
		h = g;
		h += (e.d + 1) * (1 + n.b(g1, n.a_p_static.a("help." + (i + 1)), (e.a - 48) / e.c - 1, 0, 24, h, 1, 24, 24, e.a - 48, e.b - 48, 0, false, 0));
	}

	private static void f(Graphics g1)
	{
		n.a(g1, e.a / 2, e.b / 2, e.a - 32, e.b - 32, true);
		g1.setClip(e.a - 16 - 10, 19, 7, 7);
		g1.drawImage(n.e, e.a - 16 - 10 - 7, 19, 0);
		g1.setClip(e.a - 16 - 10, e.b - 16 - 10, 7, 7);
		g1.drawImage(n.e, e.a - 16 - 10, e.b - 16 - 10, 0);
		l = k;
		for (int i1 = 0; i1 < n.a_p_static.a("about.sum"); i1++)
			l += (e.d + 1) * (1 + n.b(g1, n.a_p_static.a("about." + (i1 + 1)), (e.a - 48) / e.c - 1, 0, 24, l, 1, 24, 24, e.a - 48, e.b - 48, 0, false, 0));

	}

	private static void g(Graphics g1)
	{
		String s1;
		if (n.c_boolean_static)
			s1 = n.a_p_static.a("menuRes.sound_On");
		else
			s1 = n.a_p_static.a("menuRes.sound_Off");
		n.a(g1, e.a / 2, e.b / 2, n.a_javax_microedition_lcdui_Font_static.stringWidth(s1) + 2, n.a_javax_microedition_lcdui_Font_static.getHeight() * 2 + 2, true);
		n.a(g1, n.a_p_static.a("menuRes.menu_Txt_4"), 4, 17, e.a / 2, e.b / 2 - e.d, 1, 0, 0, e.a, e.b, 0xffffff, true, 0);
		n.a(g1, s1, s1.length(), 17, e.a / 2, e.b / 2, 1, 0, 0, e.a, e.b, 0xffffff, true, 0);
	}

	public static void c()
	{
		g();
		switch (a_int_static)
		{
		case 3: // '\003'
			i();
			break;

		case 5: // '\005'
			h();
			break;
		}
	}

	private static void g()
	{
		if (n < m)
		{
			int i1 = (m - n) / 2;
			if (i1 < 1)
				i1 = 1;
			n += i1;
		}
		if (n > m)
		{
			int j1 = (n - m) / 2;
			if (j1 < 1)
				j1 = 1;
			n -= j1;
		}
		if (q < p * e.d)
		{
			int k1 = (p * e.d - q) / 2;
			if (k1 < 1)
				k1 = 1;
			q += k1;
		}
		if (q > p * e.d)
		{
			int l1 = (q - p * e.d) / 2;
			if (l1 < 1)
				l1 = 1;
			q -= l1;
		}
		if (s < r * e.d)
		{
			int i2 = (r * e.d - s) / 2;
			if (i2 < 1)
				i2 = 1;
			s += i2;
		}
		if (s > r * e.d)
		{
			int j2 = (s - r * e.d) / 2;
			if (j2 < 1)
				j2 = 1;
			s -= j2;
		}
	}

	private static void h()
	{
		if (c_boolean_static)
		{
			if (l > e.b - 24)
				k -= 8;
		} else
		if (d_boolean_static && k < 24)
			k += 8;
	}

	private static void i()
	{
		if (a_boolean_static)
		{
			if (h > e.b - 24)
				g -= 8;
		} else
		if (b_boolean_static && g < 24)
			g += 8;
	}

	public static void d()
	{
		switch (a_int_static)
		{
		case 0: // '\0'
			q();
			break;

		case 4: // '\004'
			p();
			break;

		case 1: // '\001'
			r();
			break;

		case 2: // '\002'
			j();
			break;

		case 3: // '\003'
			n();
			break;

		case 5: // '\005'
			o();
			break;

		case 7: // '\007'
			m();
			break;
		}
	}

	private static void j()
	{
		switch (b_int_static)
		{
		case 0: // '\0'
			l();
			break;

		case 1: // '\001'
			k();
			break;
		}
	}

	private static void k()
	{
label0:
		switch (n.i_int_static)
		{
		default:
			break;

		case 1: // '\001'
		case 50: // '2'
			r--;
			if (r < 0)
				r = 2;
			break;

		case 6: // '\006'
		case 56: // '8'
			r++;
			if (r > 2)
				r = 0;
			break;

		case 8: // '\b'
		case 53: // '5'
			switch (r)
			{
			default:
				break;

			case 0: // '\0'
				n.f = (byte)(p + 1);
				a_ab_static.b();
				break label0;

			case 1: // '\001'
				if (a_java_lang_String_array1d_static[p] != null)
				{
					j.e();
					n.f = (byte)(p + 1);
					n.b(n.f);
					n.c();
					a_int_static = 0;
					b_int_static = 0;
				}
				break;

			case 2: // '\002'
				b_int_static = 0;
				break;
			}
			break;
		}
	}

	private static void l()
	{
		switch (n.i_int_static)
		{
		case 1: // '\001'
		case 50: // '2'
			p--;
			if (p < 0)
				p = 5;
			break;

		case 6: // '\006'
		case 56: // '8'
			p++;
			if (p > 5)
				p = 0;
			break;

		case 8: // '\b'
		case 53: // '5'
			b_int_static = 1;
			break;
		}
		switch (n.h)
		{
		case -7: 
			a_int_static = 0;
			break;
		}
	}

	private static void m()
	{
		switch (n.i_int_static)
		{
		case 8: // '\b'
		case 53: // '5'
			a_int_static = 2;
			break;
		}
	}

	private static void n()
	{
		switch (n.h)
		{
		case -7: 
			a_int_static = 0;
			break;
		}
		switch (n.i_int_static)
		{
		default:
			break;

		case 6: // '\006'
		case 56: // '8'
			a_boolean_static = true;
			break;

		case 1: // '\001'
		case 50: // '2'
			b_boolean_static = true;
			break;

		case 2: // '\002'
		case 52: // '4'
			if (i > 0)
			{
				i--;
				g = 24;
			}
			break;

		case 5: // '\005'
		case 54: // '6'
			if (i < j - 1)
			{
				i++;
				g = 24;
			}
			break;
		}
	}

	private static void o()
	{
		switch (n.h)
		{
		case -7: 
			a_int_static = 0;
			break;
		}
		switch (n.i_int_static)
		{
		case 6: // '\006'
		case 56: // '8'
			c_boolean_static = true;
			break;

		case 1: // '\001'
		case 50: // '2'
			d_boolean_static = true;
			break;
		}
	}

	private static void p()
	{
		switch (n.i_int_static)
		{
		case 2: // '\002'
		case 52: // '4'
			if (!n.c_boolean_static)
			{
				a_k_static = new k("/menu_BGM.mid", "audio/midi", true, false);
				if (!a_k_static.a)
					a_k_static.c();
			}
			n.c_boolean_static = true;
			break;

		case 5: // '\005'
		case 54: // '6'
			if (n.c_boolean_static && a_k_static != null && a_k_static.a)
				a_k_static.e();
			n.c_boolean_static = false;
			break;

		case 8: // '\b'
		case 53: // '5'
			a_int_static = 0;
			n.c();
			break;
		}
		switch (n.h)
		{
		case -7: 
		case -6: 
			a_int_static = 0;
			break;
		}
	}

	private static void q()
	{
label0:
		switch (n.i_int_static)
		{
		default:
			break;

		case 1: // '\001'
		case 50: // '2'
			if (c_int_static > 1)
			{
				c_int_static--;
				m += e.d + 1;
			}
			break;

		case 6: // '\006'
		case 56: // '8'
			if (c_int_static < 6)
			{
				c_int_static++;
				m -= e.d + 1;
			}
			break;

		case 8: // '\b'
		case 53: // '5'
			a_int_static = c_int_static;
			switch (a_int_static)
			{
			default:
				break;

			case 1: // '\001'
				n.a_byte_static = 0;
				n.b(n.f);
				if (n.a_byte_static == 0)
				{
					o.a(2, 0, 5, 0);
					break label0;
				}
				switch (n.a_z_static.h)
				{
				case 1: // '\001'
					o.a(2, 0, 8, 1);
					break;

				default:
					o.a(2, 0, 9, n.a_z_static.h);
					break;
				}
				break;
			}
			break;
		}
	}

	private static void r()
	{
		switch (d_int_static)
		{
		case 0: // '\0'
			s();
			break;

		case 1: // '\001'
			t();
			break;
		}
	}

	private static void s()
	{
	}

	private static void t()
	{
		switch (n.i_int_static)
		{
		case 1: // '\001'
		case 50: // '2'
			f--;
			if (f < 0)
				f = 1;
			break;

		case 6: // '\006'
		case 56: // '8'
			f++;
			if (f > 1)
				f = 0;
			break;

		case 8: // '\b'
		case 53: // '5'
			switch (f)
			{
			case 0: // '\0'
				d_int_static = 0;
				f = 0;
				break;

			case 1: // '\001'
				n.f = e + 1;
				o.a(2, 0, 5, 0);
				break;
			}
			break;
		}
		switch (n.h)
		{
		case -7: 
			d_int_static = 0;
			f = 0;
			break;
		}
	}

	public static void e()
	{
		switch (a_int_static)
		{
		case 3: // '\003'
			u();
			break;

		case 5: // '\005'
			v();
			break;
		}
	}

	private static void u()
	{
		a_boolean_static = false;
		b_boolean_static = false;
	}

	private static void v()
	{
		c_boolean_static = false;
		d_boolean_static = false;
	}

	public static void f()
	{
		switch (a_int_static)
		{
		case 6: // '\006'
			o.a(2, 0, 3, 0);
			break;
		}
	}

	static 
	{
		o = e.b - 4 - 2 * (e.d - 2);
	}
}

⌨️ 快捷键说明

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