l.java

来自「很好的3款手机游戏源码」· Java 代码 · 共 200 行

JAVA
200
字号
// 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.FullCanvas;
import javax.microedition.lcdui.*;

public class l extends FullCanvas
	implements Runnable
{

	int else;
	GameMidlet do;
	public long new;
	public byte int;
	private boolean for;
	f case;
	public static Font if;
	public byte try;
	public Thread byte;
	public byte char;
	int a;

	public l(GameMidlet gamemidlet)
	{
		else = 40;
		new = 0L;
		int = 1;
		for = true;
		char = -1;
		a = -1;
		p.cI = this;
		setFullScreenMode(true);
		do = gamemidlet;
		new();
		if = Font.getFont(32, 1, 8);
		byte = new Thread(this);
		p.bl = new j(this);
		byte.start();
	}

	protected void paint(Graphics g)
	{
		g.setFont(if);
		case.a(g);
	}

	public void run()
	{
		long l1 = 0L;
		long l3 = 0L;
		long l5 = 0L;
		int i = else;
		do
		{
			if (!for)
				break;
			long l2 = System.currentTimeMillis();
			repaint();
			serviceRepaints();
			do();
			long l4 = System.currentTimeMillis();
			long l6 = l4 - l2;
			if (l6 < (long)i)
				try
				{
					Thread.sleep((long)i - l6);
				}
				catch (InterruptedException interruptedexception) { }
		} while (true);
		byte();
	}

	void do()
	{
		if (char != -1)
		{
			switch (char)
			{
			case 0: // '\0'
			case 10: // '\n'
				for();
				break;

			case 9: // '\t'
				try();
				break;

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

			case 5: // '\005'
				if();
				break;
			}
			char = -1;
		}
		case.for();
	}

	void if()
	{
		if (case != null)
			case.a();
		try = 1;
		case = x.if(this);
		switch (a)
		{
		case 0: // '\0'
			((x)case).as();
			break;

		case 73: // 'I'
			((x)case).av();
			break;

		case 81: // 'Q'
			((x)case).ar();
			break;

		case 82: // 'R'
			((x)case).aE();
			break;
		}
		case.int();
	}

	protected void keyPressed(int i)
	{
		case.if(i);
	}

	protected void keyReleased(int i)
	{
		case.a(i);
	}

	void for()
	{
		if (case != null)
			case.a();
		try = 0;
		case = p.a(this);
		switch (char)
		{
		case 0: // '\0'
			case.int();
			// fall through

		case 10: // '\n'
		default:
			return;
		}
	}

	private void new()
	{
		case = ao.do(this);
		case.int();
	}

	void try()
	{
		try = 9;
		ak ak1 = ak.a(this);
		ak1.int();
		do.do.setCurrent(ak1.new);
	}

	public void int()
	{
		for = true;
	}

	public void a()
	{
		for = false;
	}

	public void byte()
	{
		try
		{
			do.notifyDestroyed();
		}
		catch (Exception exception) { }
	}

	public void showNotify()
	{
		case.if();
	}

	public void hideNotify()
	{
		case.do();
	}
}

⌨️ 快捷键说明

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