k.java

来自「j2me武林传之刀剑江湖录[中篇]反编译的源代码」· Java 代码 · 共 3,595 行 · 第 1/5 页

JAVA
3,595
字号
// 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 com.nokia.mid.ui.DirectGraphics;
import com.nokia.mid.ui.DirectUtils;
import java.io.*;
import java.util.*;
import javax.microedition.io.Connector;
import javax.microedition.lcdui.*;
import javax.microedition.media.Player;
import javax.microedition.midlet.MIDlet;
import javax.microedition.rms.RecordStore;
import javax.wireless.messaging.MessageConnection;
import javax.wireless.messaging.TextMessage;

public final class k extends Canvas
	implements Runnable
{

	public static long a = 70L;
	public static long b = 70L;
	public static int c;
	public static long d;
	public static byte e;
	public static int f[];
	public static byte g;
	public static byte h;
	public static long i[];
	public static byte j[];
	public static byte k[];
	public static byte l[];
	public static String m[];
	public static String n[];
	public static short o;
	private static short cq;
	public static long p[];
	public static f q[] = new f[1];
	public static short r[][] = new short[1][];
	public static f s;
	public static short t;
	public static z u[];
	public static short v;
	public static short w[] = new short[120];
	public static short x;
	public static short y[] = new short[120];
	private static int cr;
	private static short cs[] = new short[120];
	public static boolean z;
	public static byte A;
	public static byte B;
	public static byte C;
	public static int D;
	public static int E;
	public static int F;
	public static int G;
	public static Image H;
	public static Image I;
	public static Image J;
	public static boolean K;
	public static boolean L;
	public static boolean M;
	public static Player N;
	public static int O = -1;
	public static int P = -1;
	public static final String Q[] = {
		"start.mid", "start1.mid", "battle1.mid", "battle2.mid", "defeat1.mid", "kongju.mid", "fail.mid", "environs.mid", "hole.mid", "hole2.mid", 
		"suzhou.mid", "village1.mid", "village2.mid", "xiyu.mid", "shaolin.mid", "end.mid", "gao.mid"
	};
	public static int R;
	public static boolean S;
	public static Hashtable T = new Hashtable();
	public static byte U;
	public static boolean V;
	public static boolean W;
	public static int X;
	public static int Y;
	public static boolean Z = false;
	public static boolean aa = false;
	public static boolean ab;
	private static int ct;
	private static int cu;
	private static int cv;
	private static boolean cw;
	private static boolean cx;
	private static boolean cy;
	private static Image cz;
	private static int cA;
	private static int cB;
	private static int cC;
	private static int cD;
	private static int cE;
	private static final String cF[] = {
		"天杀是江湖上最神秘的一个杀手组织。", "他们以极高的代价去为别人杀人。", "近几年来,已经连续刺死众多知名武林人士。", "一时间,江湖上又掀起了一阵血雨腥风。", "......."
	};
	public static byte ac;
	public static final String ad[] = {
		"河畔", "渔村", "西山", "杭州", "杭州别院", "杭州郊外", "民居", "金香玉宅", "落沙酒店", "杂货店", 
		"醉仙楼", "华山山脚", "华山山腰", "华山派", "柴房", "华山后山", "后山山洞一层", "后山山洞二层", "落沙村", "海盗巢穴一层", 
		"海盗巢穴三层", "销金岛", "洞窟密道一层", "洞窟密道二层", "洞窟大厅", "水下密道前段", "水下密道后段", "海盗巢穴二层", "死亡皇后岛"
	};
	public static final byte ae[][] = {
		{
			0, 1, 2
		}, {
			0, 1, 2
		}, {
			0, 1, 2
		}, {
			3, 6, 9, 10
		}, {
			4, 7
		}, {
			5
		}, {
			3, 6, 9, 10
		}, {
			4, 7
		}, {
			8, 18
		}, {
			3, 6, 9, 10
		}, {
			3, 6, 9, 10
		}, {
			11, 12
		}, {
			11, 12
		}, {
			13, 14, 15
		}, {
			13, 14, 15
		}, {
			13, 14, 15
		}, {
			16, 17
		}, {
			16, 17
		}, {
			8, 18
		}, {
			19, 20, 27
		}, {
			19, 20, 27
		}, {
			21
		}, {
			22, 23, 24
		}, {
			22, 23, 24
		}, {
			22, 23, 24
		}, {
			25, 26
		}, {
			25, 26
		}, {
			19, 20, 27
		}, {
			28
		}
	};
	private static byte cG;
	private static int cH;
	private static final int cI[][] = {
		{
			-1, 5
		}, {
			0, 6
		}, {
			1, 9
		}, {
			2, 11
		}, {
			3, 12
		}, {
			4, 7
		}, {
			5, 8
		}, {
			6, 14
		}, {
			8, 16
		}, {
			7, 15
		}
	};
	public static final String af[] = {
		"聂凡", "小强", "令狐虫", "斗笠男", "屎天王", "佑佑木大次郎", "小黑", "清风", "服部整藏", "高傲"
	};
	public static int ag[] = {
		1, 0, 0, 0, 0, 0, 0, 0, 0, 0
	};
	public static final String ah[] = {
		"继续游戏", "返回主菜单"
	};
	public static int ai;
	private static boolean cJ;
	private static boolean cK;
	private static boolean cL;
	private static boolean cM;
	private static boolean cN;
	private static boolean cO;
	private static boolean cP;
	private static boolean cQ;
	private static boolean cR;
	private static int cS;
	private static long cT;
	private static int cU;
	private static int cV;
	private static int cW;
	private static final int cX[] = {
		5, 8, 9, 30, 2, 18, 12, 13, 14
	};
	public static final short aj[][] = {
		{
			2500, 500, 250, 5, 5, 2, 0, 0, 50
		}, {
			3000, 550, 200, 5, 6, 2, 50, 0, 0
		}, {
			3500, 600, 250, 5, 6, 2, 0, 50, 0
		}, {
			4500, 800, 300, 5, 4, 3, 0, 0, 50
		}, {
			4000, 650, 300, 5, 6, 3, 50, 0, 0
		}, {
			3000, 600, 250, 8, 10, 3, 0, 50, 0
		}, {
			5000, 850, 450, 8, 6, 3, 0, 0, 50
		}, {
			6000, 900, 500, 8, 12, 3, 0, 50, 0
		}, {
			7000, 1000, 550, 10, 8, 3, 50, 0, 0
		}
	};
	private static int cY;
	private static int cZ;
	private static int da;
	private static int db[][] = new int[10][3];
	private static boolean dc;
	private static boolean dd;
	private static final String de[] = {
		"胜败乃兵家常事", "大侠请重新来过"
	};
	private static int df;
	private static int dg;
	private static final String dh[] = {
		"虽然揭露了高傲的阴谋", "但幕后的黑手仍然没有出现", "聂凡不知道", "他即将被卷入一个更大的阴谋之中", "......"
	};
	private static int di;
	private static int dj;
	private static int dk;
	private static final int dl[] = {
		0xffffff, 65331, 52479, 0xcc9900, 0xffcc00, 0xfafd02
	};
	private static final Font dm[];
	private static final int dn[] = {
		0, 1, 2
	};
	private static short do;
	private static short dp;
	private static short dq;
	private static short dr;
	private static short ds;
	public static z ak;
	private static String dt;
	private static int du;
	private static short dv[];
	private static int dw;
	private static int dx;
	private static int dy;
	private static int dz;
	private static int dA[][];
	private static int dB;
	private static int dC;
	private static int dD;
	private static int dE[];
	private static boolean dF;
	private static short dG[][];
	private static byte dH;
	private static int dI;
	private static int dJ;
	private static int dK;
	private static int dL;
	private static int dM;
	private static int dN;
	private static int dO;
	private static int dP = 5;
	private static int dQ = 0;
	private static boolean dR = false;
	public static boolean al;
	public static int am[];
	private static int dS;
	private static final byte dT[][] = {
		{
			0
		}, {
			0
		}, {
			0
		}, {
			0
		}, {
			0
		}, {
			2, 1, 2
		}, {
			2, 1, 2
		}, {
			2, 1, 2
		}, {
			2, 1, 2
		}, {
			2
		}, {
			1, 1
		}
	};
	private static final byte dU[][] = {
		{
			2, 1, 1
		}, {
			2, 2, 2, 1
		}, {
			1, 2, 2, 1
		}, {
			2, 2, 2, 1
		}, {
			2
		}, {
			2, 1
		}, {
			2, 2, 1
		}, {
			1, 2, 2
		}, {
			1, 2, 2
		}, {
			1, 2, 2
		}, {
			1, 2, 1, 2, 2
		}, {
			2, 2, 1, 2
		}, {
			2, 2, 1
		}, {
			2, 1
		}, {
			1
		}, {
			2, 1, 2
		}, {
			2, 1, 2
		}, {
			1
		}, {
			1
		}, {
			1
		}, {
			2, 2
		}, {
			2, 2, 2
		}, {
			1, 2
		}, {
			2, 2, 2
		}, {
			2
		}, {
			2, 2
		}, {
			2
		}
	};
	public static short an[] = new short[60];
	public static short ao[] = new short[24];
	public static short ap[] = new short[24];
	public static short aq[] = new short[10];
	private static short dV;
	private static byte dW[][][];
	private static byte dX[][][];
	private static String dY[];
	private static short dZ[][];
	private static byte ea[][][];
	private static byte eb[][][];
	private static String ec[];
	private static short ed[][];
	private static byte ee[];
	private static int ef;
	private static byte eg;
	private static z eh;
	private static byte ei[];
	private static Vector ej = new Vector();
	private static Vector ek = new Vector();
	private static int el;
	private static int em;
	private static int en;
	private static int eo;
	private static int ep;
	public static byte ar[][];
	public static byte as[][];
	public static int at;
	public static int au;
	public static short av[] = new short[4];
	public static short aw[] = new short[4];
	public static short ax[] = new short[4];
	public static z ay;
	public static boolean az = false;
	public static short aA;
	public static short aB;
	public static short aC;
	public static int aD;
	public static int aE;
	public static int aF;
	public static int aG;
	public static short aH[];
	public static byte aI[];
	public static short aJ[][];
	public static byte aK[][][];
	public static z aL;
	private static boolean eq = false;
	private static int er = -1;
	private static Hashtable es = new Hashtable();
	public static byte aM[][] = new byte[2][16];
	public static boolean aN[] = new boolean[2];
	private static f et;
	public static int aO[][] = new int[10][5];
	public static short aP;
	public static short aQ;
	public static int aR;
	public static int aS[] = new int[3];
	public static int aT[][] = new int[3][2];
	public static int aU;
	public static int aV[][] = new int[3][5];
	public static boolean aW;
	public static int aX;
	public static int aY;
	public static boolean aZ;
	public static int ba;
	public static short bb[][] = new short[12][4];
	public static int bc;
	public static byte bd[][];
	public static int be;
	public static int bf;
	public static int bg;
	public static int bh;
	public static int bi = 5;
	public static int bj;
	public static String bk;
	public static String bl;
	public static int bm;
	public static int bn;
	public static int bo;
	public static int bp;
	public static final String bq[] = {
		"乾正北", "坤东南", "震西北", "艮东北", "离东南"
	};
	public static final int br[][] = {
		{
			0, 0
		}, {
			4, 5
		}, {
			3, 1
		}, {
			5, 7
		}, {
			2, 5
		}
	};
	public static int bs;
	public static int bt;
	public static int bu;
	public static int bv;
	public static String bw;
	public static int bx;
	public static final String by[] = {
		"1.购买装备", "2.购买道具", "3.金币充值"
	};
	public static int bz;
	public static final int bA[] = {
		24, 25, 26, 27
	};
	public static final int bB[] = {
		380, 220, 300, 200
	};
	public static int bC;
	public static boolean bD;
	public static boolean bE;
	public static boolean bF;
	public static boolean bG;
	public static String bH[];
	public static final int bI[] = {
		1, 2, 3, 4, 5, 7
	};
	public static final int bJ[] = {
		150, 80, 250, 80, 80, 150
	};
	public static String bK[];
	public static int bL;
	public static boolean bM;
	public static boolean bN;
	public static boolean bO;
	private static int eu;
	private static int ev = 3;
	private static boolean ew;
	private static boolean ex;
	public static boolean bP;
	public static boolean bQ;
	private static boolean ey;
	private static boolean ez;
	private static boolean eA;
	private static int eB;
	public static boolean bR;
	public static boolean bS;
	public static final int bT[] = {
		300, 200
	};
	public static int bU;
	public static short bV[][];
	private static short eC;
	private static short eD;
	private static short eE;
	private static short eF;
	public static boolean bW;
	public static z bX;
	public static int bY;
	public static int bZ;
	public static int ca;
	public static int cb;
	public static int cc = 250;
	public static MessageConnection cd = null;
	public static String ce[];
	public static boolean cf[];
	public static String cg[];
	public static int ch[];
	public static int ci[];
	public static String cj[];
	public static int ck;
	public static int cl;
	public static int cm;
	public static int cn;
	public static int co;
	public static int cp;

	public k()
	{
		z = true;
		A = B = C = -1;
		aD();
		p.a();
		a((byte)0);
		N();
		setFullScreenMode(true);
		(new Thread(this)).start();
	}

	public final void run()
	{
		long l1 = 0L;
		while (z) 
		{
			long l2 = System.currentTimeMillis() + a;
			a.b();
			repaint();
			serviceRepaints();
			while (l2 > System.currentTimeMillis()) 
				Thread.yield();
		}
	}

	public final void paint(Graphics g1)
	{
		Graphics g2;
		(g2 = g1).setFont(h.a);
		if (B == 4 || B == 41 || B == 5 || B == 8 || B == 9 || B == 10)
			R++;
		switch (B)
		{
		case 24: // '\030'
		case 25: // '\031'
		case 26: // '\032'
		case 27: // '\033'
		case 28: // '\034'
		case 29: // '\035'
		case 30: // '\036'
		case 31: // '\037'
		case 32: // ' '
		case 33: // '!'
		case 34: // '"'
		case 35: // '#'
		case 36: // '$'
		case 37: // '%'
		case 38: // '&'
		case 39: // '\''
		case 40: // '('
		default:
			break;

		case 0: // '\0'
			W();
			if (0 == B)
				p(g2);
			break;

		case 1: // '\001'
			Z();
			if (1 == B)
				q(g2);
			break;

		case 2: // '\002'
			ac();
			if (2 == B)
				r(g2);
			break;

		case 3: // '\003'
			af();
			if (3 == B)
				s(g2);
			break;

		case 4: // '\004'
			ai();
			if (4 == B)
				t(g2);
			break;

		case 41: // ')'
			al();
			if (41 == B)
				u(g2);
			break;

		case 5: // '\005'
			ao();
			if (5 == B)
				v(g2);
			break;

		case 6: // '\006'
			aq();
			if (6 == B)
				w(g2);
			break;

		case 7: // '\007'
			as();
			if (7 == B)
				x(g2);
			break;

		case 8: // '\b'
			aA();
			if (8 == B)
				B(g2);
			break;

		case 9: // '\t'
			av();
			if (9 == B)
				y(g2);
			break;

		case 10: // '\n'
			ax();
			if (10 == B)
				z(g2);
			break;

		case 11: // '\013'
			az();
			if (11 == B)
				A(g2);
			break;

		case 14: // '\016'
			p();
			if (14 == B)
				d(g2);
			break;

		case 15: // '\017'
			s();
			if (15 == B)
				e(g2);
			break;

		case 16: // '\020'
			u();
			if (16 == B)
				f(g2);
			break;

		case 12: // '\f'
			e();
			if (12 == B)
				b(g2);
			break;

		case 13: // '\r'
			i();
			if (13 == B)
				c(g2);
			break;

		case 17: // '\021'
			w();
			if (17 == B)
				g(g2);
			break;

		case 18: // '\022'
			y();
			if (18 == B)
				h(g2);
			break;

⌨️ 快捷键说明

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