📄 g.java
字号:
import java.io.IOException;
import java.io.InputStream;
import java.util.*;
import javax.microedition.lcdui.*;
import javax.microedition.lcdui.game.Sprite;
final class g extends Canvas
implements Runnable, CommandListener
{
public static Image a;
public static Image b;
public static Image c;
public static Image d;
public static Image e;
public static Image f;
public Image g;
Sprite h;
public int i;
public int j;
public int k;
boolean l;
boolean m;
private int C;
private int D;
a n;
byte o;
static Calendar p = Calendar.getInstance();
static Date q = new Date();
static StringBuffer r = new StringBuffer(5);
private MMIDlet E;
private Command F;
private Command G;
private boolean H;
private boolean I;
private boolean J;
f s;
f t;
String u;
Exception v;
boolean w;
a x;
boolean y;
int z;
long A;
long B;
public g(MMIDlet mmidlet)
{
i = 0;
l = false;
m = false;
D = 0;
o = 0;
F = new Command("\u4E3B\u83DC\u5355", 4, 0);
G = new Command("\u9000\u51FA", 7, 0);
H = false;
I = false;
J = false;
u = null;
v = null;
w = false;
y = true;
z = 100;
A = 0L;
B = 0L;
setFullScreenMode(true);
E = mmidlet;
try
{
if(a == null)
{
d();
}
}
catch(IOException _ex)
{
I = true;
}
s = new f("\u597D\u53CB");
t = new f("\u964C\u751F\u4EBA");
(new Thread(this)).start();
}
public final void a()
{
D = 0;
n = MMIDlet.t;
x = null;
int i1 = e.o + b.getHeight() / 3;
MMIDlet.t.a(e.l + i1);
MMIDlet.w.a(e.l * 2 + i1);
MMIDlet.u.a(i1);
MMIDlet.v.a(i1);
MMIDlet.t.e = false;
MMIDlet.t.f = false;
MMIDlet.w.e = false;
MMIDlet.w.f = false;
s.a = t.a = false;
s.b = true;
t.b = false;
s.c = i1;
t.c = e.l + i1;
if(-1 != MMIDlet.e.indexOf("NEC_N850") || -1 != MMIDlet.e.indexOf("NEC_NQ") || -1 != MMIDlet.e.indexOf("NEC_AG") || -1 != MMIDlet.e.indexOf("NEC_NK") || -1 != MMIDlet.e.indexOf("SAM_I858") || -1 != MMIDlet.e.indexOf("PAN_VS6"))
{
setCommandListener(this);
addCommand(F);
addCommand(G);
if(-1 == MMIDlet.e.indexOf("SAM_I858") && -1 == MMIDlet.e.indexOf("PAN_VS6"))
{
H = true;
}
}
g = null;
y = false;
l = false;
}
private void d()
throws IOException
{
InputStream inputstream = getClass().getResourceAsStream("/res/i.png");
Image image = null;
byte abyte0[] = new byte[inputstream.available()];
inputstream.read(abyte0);
byte byte0 = abyte0[0];
boolean flag = false;
int j1 = 1;
for(int k1 = 0; k1 < byte0; k1++)
{
int i1 = (abyte0[j1] & 0xff) << 8 | abyte0[j1 + 1] & 0xff;
j1 += 2;
if(0 == k1)
{
c = Image.createImage(abyte0, j1, i1);
} else
if(1 == k1)
{
a = Image.createImage(abyte0, j1, i1);
} else
if(2 == k1)
{
d = Image.createImage(abyte0, j1, i1);
} else
if(3 == k1)
{
b = Image.createImage(abyte0, j1, i1);
} else
if(4 == k1)
{
image = Image.createImage(abyte0, j1, i1);
} else
if(5 == k1)
{
g = Image.createImage(abyte0, j1, i1);
} else
if(6 == k1)
{
e = Image.createImage(abyte0, j1, i1);
} else
if(7 == k1)
{
f = Image.createImage(abyte0, j1, i1);
}
j1 += i1;
}
h = new Sprite(image, image.getWidth() / 2, image.getHeight());
h.setFrameSequence(new int[] {
0, 1
});
h.setPosition(55, 30);
}
private void c(int i1)
{
if(y)
{
return;
}
switch(i1)
{
case -6:
if(-1 == MMIDlet.e.indexOf("SAM_I858") && -1 == MMIDlet.e.indexOf("PAN_VS6"))
{
E.i();
}
return;
case -7:
l();
return;
case 50: // '2'
if(n != null && n.f)
{
n.e();
}
return;
case 56: // '8'
if(n != null && n.f)
{
n.d();
}
return;
case 42: // '*'
if(n != null && n.f)
{
n.f();
}
return;
case 35: // '#'
if(n != null && n.f)
{
n.g();
}
return;
case 53: // '5'
c c1;
if((c1 = MMIDlet.h()) != null)
{
c1.a(MMIDlet.B);
String s1 = (String)E.U.f.elementAt(0);
n n1;
if((n1 = (n)MMIDlet.l.get(s1)) == null)
{
n1 = (n)MMIDlet.o.get(s1);
}
if(n1 == null)
{
return;
}
E.T = n1;
}
return;
}
switch(getGameAction(i1))
{
case 8: // '\b'
i();
return;
case 1: // '\001'
h();
return;
case 6: // '\006'
g();
return;
case 2: // '\002'
e();
return;
case 5: // '\005'
f();
return;
case 3: // '\003'
case 4: // '\004'
case 7: // '\007'
default:
return;
}
}
private void a(Graphics g1)
throws Exception
{
if(w)
{
g1.setColor(150, 0, 0);
g1.drawString(u, 5, 0, 20);
for(int i1 = 10; 0 < v.toString().length(); i1 += 10)
{
g1.drawString("" + v.toString().charAt(0), 5, i1, 20);
}
}
}
private void e()
{
if(D > 0)
{
D--;
return;
}
if(D != 0) goto _L2; else goto _L1
_L1:
if(!t.a || s.b) goto _L4; else goto _L3
_L3:
t.a = false;
MMIDlet.w.e = false;
n = MMIDlet.w;
t;
goto _L5
_L4:
if(!s.a || t.b) goto _L2; else goto _L6
_L6:
s.a = false;
n = MMIDlet.t;
MMIDlet.t.e = false;
int i1 = e.n * (e.l + 1);
t.c -= i1;
MMIDlet.w.a(MMIDlet.w.a() - i1);
s;
_L5:
true;
b;
_L2:
}
private void f()
{
if(D < 2)
{
if(D == 0)
{
x = n;
}
D++;
}
}
private void g()
{
if(D != 0) goto _L2; else goto _L1
_L1:
if(s.b)
{
s.b = false;
if(s.a)
{
if(MMIDlet.t.j() > 0)
{
n = MMIDlet.t;
MMIDlet.t.f = true;
return;
} else
{
t.b = true;
return;
}
} else
{
t.b = true;
return;
}
}
if(!t.b) goto _L4; else goto _L3
_L3:
if(t.a && MMIDlet.w.j() > 0)
{
t.b = false;
MMIDlet.w.f = true;
return;
}
goto _L5
_L4:
if(n != MMIDlet.w) goto _L7; else goto _L6
_L6:
MMIDlet.w;
goto _L8
_L7:
if(n != MMIDlet.t) goto _L5; else goto _L9
_L9:
if(n.k())
{
t.b = true;
MMIDlet.t.f = false;
return;
}
MMIDlet.t;
goto _L8
_L2:
if(n == null) goto _L5; else goto _L10
_L10:
n;
_L8:
c();
_L5:
}
private void h()
{
if(D != 0) goto _L2; else goto _L1
_L1:
if(s.b)
{
return;
}
if(t.b)
{
t.b = false;
if(s.a && MMIDlet.t.j() > 0)
{
n = MMIDlet.t;
MMIDlet.t.f = true;
return;
} else
{
s.b = true;
return;
}
}
if(n != MMIDlet.w) goto _L4; else goto _L3
_L3:
if(n.l())
{
t.b = true;
MMIDlet.w.f = false;
return;
}
MMIDlet.w;
goto _L5
_L4:
if(n != MMIDlet.t) goto _L7; else goto _L6
_L6:
if(n.l())
{
s.b = true;
MMIDlet.t.f = false;
return;
}
MMIDlet.t;
goto _L5
_L2:
if(n == null) goto _L7; else goto _L8
_L8:
n;
_L5:
b();
_L7:
}
private void i()
{
if(D != 0) goto _L2; else goto _L1
_L1:
if(!s.b)
{
break MISSING_BLOCK_LABEL_191;
}
s.a = !s.a;
MMIDlet.t.e = s.a;
if(!s.a)
{
break MISSING_BLOCK_LABEL_153;
}
if(MMIDlet.t.j() <= 0) goto _L4; else goto _L3
_L3:
s.b = false;
MMIDlet.t;
true;
goto _L5
_L4:
MMIDlet.t;
false;
_L5:
f;
n = MMIDlet.t;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -