📄 richmantaiwanmidlet.java
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
import java.io.*;
import javax.microedition.lcdui.*;
import javax.microedition.media.Player;
import javax.microedition.media.PlayerListener;
import javax.microedition.midlet.MIDlet;
import javax.microedition.rms.RecordStore;
public class RichmanTaiwanMIDlet extends MIDlet
implements PlayerListener
{
private static RichmanTaiwanMIDlet k;
public a d;
public b i;
public g h;
public h g;
public boolean f;
public static d n;
public int e;
public boolean j;
public static int b = 0;
public String c[] = {
"陕西", "甘肃", "新疆", "", "青海", "四川", "", "西藏", "云南", "",
"贵州", "湖北", "湖南", "广西", "", "澳门", "香港", "", "杭州", "上海",
"安徽", "", "苏州", "江苏", "", "吉林", "黑龙江", "辽宁", "北京"
};
public String m[] = {
"孙小美", "阿土伯", "钱夫人"
};
public String a[] = {
"抢夺卡\n抢夺对手的卡片使用范围:对手", "均富卡\n将所有的现金平分给玩家\n使用范围:对手", "购地卡\n强制收购別人的土地包括房子\n使用范围:走到別人的土地时", "免罪卡\n使用此张卡片,就可免除牢狱之灾\n使用范围:坐牢时", "怪兽卡\n将相同区块土地上的建筑物,完全摧毀夷为平地\n使用范围:随机指定", "天使卡\n将相同区块土地上的建筑物,往上加盖一层\n使用范围:随机指定", "冬眠卡\n使对手停留原地三回合不能动作并丧失收租金的能力\n使用范围:对手", "现金卡\n掷骰子*100倍方\n式换取得到现金使用范围:任何时间"
};
public static boolean l;
public RichmanTaiwanMIDlet()
{
f = false;
e = -1;
j = false;
k = this;
n = new d(this);
g();
}
public void playerUpdate(Player player, String s, Object obj)
{
}
public void d()
{
d.m = true;
Display.getDisplay(this).setCurrent(d);
}
public void b()
{
e = 1;
Display.getDisplay(this).setCurrent(i);
}
public void c()
{
Display.getDisplay(this).setCurrent(h);
}
public void m()
{
Display.getDisplay(this).setCurrent(g);
}
public void a(boolean flag)
{
e = 0;
try
{
d = new a(this, Image.createImage("/richmant01.png"), flag);
Display.getDisplay(this).setCurrent(d);
}
catch(Exception exception)
{
RichmanTaiwanMIDlet _tmp = this;
e();
}
}
public void h()
{
e = 4;
Display.getDisplay(this).setCurrent(new c(this, true));
d.g = 3;
}
public void b(boolean flag)
{
e = 5;
Display.getDisplay(this).setCurrent(new c(this, flag));
i.k = 0;
}
public void f(int i1)
{
e = 1;
boolean flag = false;
i = new b(this);
if(i1 < 3)
{
b = 0;
e = 1;
i.i(i1);
Display.getDisplay(this).setCurrent(i);
if(l)
{
n.a();
n.a("/sound/02-bgm.mid", -1);
}
if(l)
n.a(false);
else
n.a(true);
} else
{
int j1 = i.q();
if(j1 != 2)
{
if(j1 == 0)
{
i.a();
i = null;
Display.getDisplay(this).setCurrent(new h(this, "无任何资料", "您必须玩过游戏之后才能读取进度。", false, 6));
} else
if(j1 == 1)
{
i.a();
i = null;
Display.getDisplay(this).setCurrent(new h(this, "游戏结束", "您上次游戏已结束,请选择开始新游戏。", false, 6));
}
} else
{
System.out.println("the loadResult = " + j1);
e = 1;
if(l)
{
n.a();
n.a("/sound/02-bgm.mid", -1);
}
Display.getDisplay(this).setCurrent(i);
if(l)
n.a(false);
else
n.a(true);
}
}
}
public void n()
{
e = 1;
Display.getDisplay(this).setCurrent(i);
i.c(1000, 0);
}
public void o()
{
i.v();
n();
}
public void a(String s, boolean flag)
{
e = 3;
g = new h(this, "机会", s, flag, 2);
Display.getDisplay(this).setCurrent(g);
}
public void a(int i1, int j1, int k1, int l1)
{
String s;
if(l1 == 0)
s = "您想要购买\n" + c[i1] + " 吗 ?" + "\n费用:美金$" + j1;
else
if(l1 == 3)
s = "您想要盖旅馆\n吗 ?\n费用:美金$" + j1;
else
s = "您想要盖房子\n吗 ?\n费用:美金$" + j1;
g = new h(this, "买地", s, k1 != 0, 3);
Display.getDisplay(this).setCurrent(g);
}
public void a(String s, String s1, int ai[], boolean flag)
{
for(int i1 = 0; i1 < ai.length; i1++)
{
s1 = s1 + c[ai[i1]];
if(i1 == ai.length - 1)
continue;
if(i1 == 1)
s1 = s1 + ",\n";
else
s1 = s1 + ", ";
}
s1 = s1 + ".";
g = new h(this, s, s1, flag, 2);
Display.getDisplay(this).setCurrent(g);
}
public void a(int i1, boolean flag)
{
g = new h(this, "获得卡片", String.valueOf(i1), flag, 9);
Display.getDisplay(this).setCurrent(g);
}
public void c(int i1)
{
g = new h(this, "选择卡片", String.valueOf(i1), 7);
Display.getDisplay(this).setCurrent(g);
}
public void e(int i1)
{
g = new h(this, "使用卡片", String.valueOf(i1), 8);
Display.getDisplay(this).setCurrent(g);
}
public void h(int i1)
{
g = new h(this, "使用卡片", String.valueOf(i1), true, 7);
Display.getDisplay(this).setCurrent(g);
}
public void a(int i1, String s)
{
g = new h(this, String.valueOf(i1), s, false, 10);
Display.getDisplay(this).setCurrent(g);
}
public void a(int i1)
{
e = 1;
Display.getDisplay(this).setCurrent(i);
i.h(i1);
}
public void l()
{
i.k();
Display.getDisplay(this).setCurrent(i);
}
public void b(int i1, boolean flag)
{
b("您得到现金:美金 " + i1 + ".", flag);
}
public void p()
{
g = new h(this, "无任何卡片", "你没有卡片可以使用", false, 1);
Display.getDisplay(this).setCurrent(g);
}
public void b(String s, boolean flag)
{
g = new h(this, "卡片使用", s, flag, 5);
Display.getDisplay(this).setCurrent(g);
}
public void c(boolean flag)
{
if(flag)
g = new h(this, "免罪", "已使用免罪卡,不必坐牢", true, 5);
else
g = new h(this, "坐牢", "坐牢\n您必须在此停留三天", true, 2);
Display.getDisplay(this).setCurrent(g);
}
public void a(int i1, int j1, int k1)
{
String s = k1 != 0 ? k1 != 1 ? "钱夫人" : "阿土伯" : "孙小美";
g = new h(this, "支付金钱", "付过路费给" + s + " 美金$ " + i1, j1 != 0, 4);
Display.getDisplay(this).setCurrent(g);
}
public void b(int i1)
{
h = new g(this, 3, i1);
Display.getDisplay(this).setCurrent(h);
}
public void k()
{
String as[][] = i();
h = new g(this, 0, as);
Display.getDisplay(this).setCurrent(h);
d.g = 2;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -