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

📄 ak.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 ak
	implements CommandListener
{

	l if;
	static ak int = null;
	public Form new;
	Command do;
	Command for;
	ChoiceGroup try;
	TextField a;

	public ak(l l1)
	{
		try = null;
		if = l1;
	}

	public static ak a(l l1)
	{
		if (int == null)
			int = new ak(l1);
		return int;
	}

	public void int()
	{
		do = new Command("返回", 1, 1);
		switch (if.try)
		{
		case 4: // '\004'
			a();
			break;

		case 9: // '\t'
			do();
			break;
		}
		new.addCommand(do);
		new.setCommandListener(this);
	}

	void do()
	{
		new = new Form("请输入你的战士的名字");
		for = new Command("确定", 1, 1);
		a = new TextField("名字", "", 3, 0x100000);
		new.append(a);
		new.addCommand(for);
	}

	void a()
	{
		new = new Form("游戏设置");
		for = new Command("确定", 1, 1);
		try = new ChoiceGroup("声音开关", 1);
		try.append("开", null);
		try.append("关", null);
		if (if.do.if)
			try.setSelectedIndex(0, true);
		else
			try.setSelectedIndex(1, true);
		new.append(try);
		new.addCommand(for);
	}

	public void commandAction(Command command, Displayable displayable)
	{
		switch (if.try)
		{
		case 9: // '\t'
			a(command, displayable);
			break;
		}
	}

	void a(Command command, Displayable displayable)
	{
		String s;
		if (command.equals(for))
			s = a.getString().trim();
		if();
		if.do.do.setCurrent(if);
	}

	private void if()
	{
		switch (if.try)
		{
		case 4: // '\004'
			new();
			break;

		case 9: // '\t'
			for();
			break;
		}
		new = null;
		int = null;
		System.gc();
	}

	private void for()
	{
		for = null;
		a = null;
	}

	private void new()
	{
		for = null;
		try = null;
	}

}

⌨️ 快捷键说明

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