📄 n.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 com.nokia.mid.ui.FullCanvas;
import java.io.*;
import java.util.Random;
import javax.microedition.lcdui.*;
import javax.microedition.rms.*;
public class n extends FullCanvas
implements Runnable
{
public static n a_n_static;
public static Thread a_java_lang_Thread_static;
public static Image a_javax_microedition_lcdui_Image_static;
public static int a_int_static;
public static int b_int_static;
public static Graphics a_javax_microedition_lcdui_Graphics_static;
public static boolean a_boolean_static;
public static int c_int_static;
public static int d_int_static;
public static int e_int_static;
public static boolean b_boolean_static;
public static int f_int_static;
private static long a_long_static;
private static Random a_java_util_Random_static;
public static int g_int_static = 0;
public static final int a_int_array2d_static[][] = {
{
0, 0x888888
}, {
0, 0x888888
}, {
0, 0x888888
}, {
0, 0x888888
}
};
public static boolean c_boolean_static = true;
public static Graphics b_javax_microedition_lcdui_Graphics_static;
public static int h_int_static;
public static int i_int_static;
public static Image b_javax_microedition_lcdui_Image_static;
public static Image c_javax_microedition_lcdui_Image_static;
public static Image d_javax_microedition_lcdui_Image_static;
public static Image e_javax_microedition_lcdui_Image_static;
public static Image f_javax_microedition_lcdui_Image_static;
public static Image g_javax_microedition_lcdui_Image_static;
public static Image h_javax_microedition_lcdui_Image_static;
public static Font a_javax_microedition_lcdui_Font_static;
public static z a_z_static;
public static p a_p_static;
public static p b_p_static;
public static p c_p_static;
public static Image i_javax_microedition_lcdui_Image_static;
public static int j;
public static byte a_byte_static;
public static String a_java_lang_String_static;
public static byte b_byte_static;
public static y a_y_static;
public static int _DD14 = 53720;
public static int _DD15 = 42855;
public static int _DD16 = 64262;
public static int _DD17 = 28384;
public n()
{
a_n_static = this;
a_java_util_Random_static = new Random();
a_javax_microedition_lcdui_Font_static = Font.getFont(0, 0, 8);
a_y_static = new y(2, 2, 2);
b_javax_microedition_lcdui_Image_static = t.a("/window.png");
c_javax_microedition_lcdui_Image_static = t.a("/number.png");
d_javax_microedition_lcdui_Image_static = t.a("/+-.png");
e_javax_microedition_lcdui_Image_static = t.a("/select_Tri.png");
f_javax_microedition_lcdui_Image_static = t.a("/skill_Cost.png");
g_javax_microedition_lcdui_Image_static = t.a("/soft_Key.png");
i_javax_microedition_lcdui_Image_static = t.a("/alpha_Selected.png");
h_javax_microedition_lcdui_Image_static = t.a("/select.png");
j = 0;
a_z_static = new z();
w.a();
e.a = 176;
e.b = 208;
a_java_lang_Thread_static = new Thread(this);
a_java_lang_Thread_static.start();
}
public void a()
{
if (_DD16 != _B_B._BB[16])
return;
a_java_lang_Thread_static = null;
b_boolean_static = true;
if (c_boolean_static)
switch (j)
{
case 3: // '\003'
case 4: // '\004'
case 7: // '\007'
default:
break;
case 2: // '\002'
case 5: // '\005'
if (i.a_k_static.a)
i.a_k_static.b();
break;
case 6: // '\006'
if (r.b.a)
r.b.b();
break;
case 9: // '\t'
if (g.a.a)
g.a.b();
break;
case 8: // '\b'
if (a.a.a)
a.a.b();
break;
}
repaint();
}
public void showNotify()
{
if (_DD17 != _B_B._BB[17])
return;
else
return;
}
public void hideNotify()
{
if (_DD14 != _B_B._BB[14])
{
return;
} else
{
a();
return;
}
}
public synchronized void b()
{
if (_DD17 != _B_B._BB[17])
{
return;
} else
{
a_java_lang_Thread_static = new Thread(this);
a_java_lang_Thread_static.start();
return;
}
}
public void paint(Graphics g1)
{
if (_DD14 != _B_B._BB[14])
return;
b_javax_microedition_lcdui_Graphics_static = g1;
b_javax_microedition_lcdui_Graphics_static.setFont(a_javax_microedition_lcdui_Font_static);
if (b_boolean_static)
d(b_javax_microedition_lcdui_Graphics_static);
else
switch (j)
{
case 0: // '\0'
w.a(b_javax_microedition_lcdui_Graphics_static);
break;
case 1: // '\001'
o.a(b_javax_microedition_lcdui_Graphics_static);
break;
case 2: // '\002'
i.a(b_javax_microedition_lcdui_Graphics_static);
break;
case 9: // '\t'
g.a(b_javax_microedition_lcdui_Graphics_static);
q.a(b_javax_microedition_lcdui_Graphics_static);
break;
case 5: // '\005'
h.a(b_javax_microedition_lcdui_Graphics_static);
break;
case 6: // '\006'
r.b(b_javax_microedition_lcdui_Graphics_static);
break;
case 7: // '\007'
x.a(b_javax_microedition_lcdui_Graphics_static);
break;
case 8: // '\b'
a.a(b_javax_microedition_lcdui_Graphics_static);
break;
case 10: // '\n'
m.a(b_javax_microedition_lcdui_Graphics_static);
break;
}
}
private static void d(Graphics g1)
{
if (_DD14 != _B_B._BB[14])
{
return;
} else
{
g1.setColor(a_int_array2d_static[g_int_static][0]);
g1.fillRect(0, 0, e.a, e.b);
a(g1, e.a / 2, e.b / 2, e.c * 6, e.d * 2, true);
a(g1, a_p_static.a("pause.Txt_1"), 10, 17, e.a / 2, (e.b / 2 - e.d) + 2, 1, 0xffffff, true, 0);
a(g1, a_p_static.a("pause.Txt_2"), 10, 17, e.a / 2, e.b / 2, 1, 0xffffff, true, 0);
return;
}
}
private static void f()
{
if (_DD14 != _B_B._BB[14])
return;
switch (j)
{
case 0: // '\0'
w.c();
// fall through
case 1: // '\001'
o.c();
break;
case 2: // '\002'
i.c();
break;
case 9: // '\t'
g.d();
q.a();
break;
case 5: // '\005'
h.d();
break;
case 6: // '\006'
r.b();
break;
case 7: // '\007'
x.d();
break;
case 8: // '\b'
a.d();
break;
case 10: // '\n'
m.b();
break;
}
}
public void keyPressed(int l)
{
if (_DD14 != _B_B._BB[14])
return;
h_int_static = l;
i_int_static = getGameAction(l);
if (b_boolean_static)
switch (l)
{
case 8: // '\b'
case 53: // '5'
if (c_boolean_static)
switch (j)
{
case 3: // '\003'
case 4: // '\004'
case 6: // '\006'
case 7: // '\007'
default:
break;
case 2: // '\002'
case 5: // '\005'
if (!i.a_k_static.a)
i.a_k_static.c();
break;
case 9: // '\t'
if (!g.a.a)
g.a.c();
break;
case 8: // '\b'
if (!a.a.a)
a.a.c();
break;
}
b();
b_boolean_static = false;
break;
}
else
switch (j)
{
case 0: // '\0'
w.d();
break;
case 1: // '\001'
o.f();
break;
case 2: // '\002'
i.d();
break;
case 9: // '\t'
g.b();
q.b();
break;
case 5: // '\005'
h.b();
break;
case 6: // '\006'
r.d();
break;
case 7: // '\007'
x.b();
break;
case 8: // '\b'
a.b();
break;
case 10: // '\n'
m.c();
break;
}
}
private static void g()
{
if (_DD14 != _B_B._BB[14])
return;
switch (j)
{
case 0: // '\0'
w.e();
break;
case 2: // '\002'
i.f();
break;
case 6: // '\006'
r.e();
break;
case 9: // '\t'
q.c();
break;
}
}
public void keyReleased(int l)
{
if (_DD17 != _B_B._BB[17])
return;
switch (j)
{
case 2: // '\002'
i.e();
break;
case 9: // '\t'
g.c();
break;
case 5: // '\005'
h.c();
break;
case 6: // '\006'
r.f();
break;
case 8: // '\b'
a.c();
break;
case 7: // '\007'
x.c();
break;
}
}
public void run()
{
if (_DD14 != _B_B._BB[14])
return;
if (!gameMIDlet.a)
{
Thread thread = Thread.currentThread();
try
{
while (thread == a_java_lang_Thread_static)
{
long l = System.currentTimeMillis();
if (isShown())
{
f();
g();
repaint();
serviceRepaints();
}
a_long_static = System.currentTimeMillis() - l;
if (a_long_static < 100L)
synchronized (this)
{
wait(100L - a_long_static);
}
gameMIDlet.a();
}
}
catch (InterruptedException interruptedexception) { }
}
}
public static int a(int l, int i1)
{
if (_DD14 != _B_B._BB[14])
return 0;
if (l != i1)
return Math.abs(a_java_util_Random_static.nextInt()) % ((i1 - l) + 1) + l;
else
return l;
}
public static int a(int l, int i1, int j1, int k1)
{
if (_DD16 != _B_B._BB[16])
return 0;
int l1 = l - j1;
int i2 = i1 - k1;
if (l1 < 0)
l1 = -l1;
if (i2 < 0)
i2 = -i2;
int j2;
int k2;
if (l1 < i2)
{
j2 = l1;
k2 = i2;
} else
{
j2 = i2;
k2 = l1;
}
return ((((((k2 << 8) + (k2 << 3)) - (k2 << 4) - (k2 << 1)) + (j2 << 7)) - (j2 << 5)) + (j2 << 3)) - (j2 << 1) >> 8;
}
public static boolean a(int l, int i1, int j1, int k1, int l1, int i2, int j2, int k2)
{
if (_DD17 != _B_B._BB[17])
return false;
return l + j1 > l1 && l < l1 + j2 && i1 + k1 > i2 && i1 < i2 + k2;
}
public static void a(Graphics g1, int l, int i1, int j1, int k1, int l1, int i2, int j2,
boolean flag, int k2)
{
if (_DD15 != _B_B._BB[15])
return;
int l2 = k1;
if (k1 <= 0)
l2 = 1;
g1.setClip(0, 0, e.a, e.b);
g1.setColor(i2);
for (int i3 = 0; i3 < 4; i3++)
g1.drawLine(l + i3, (i1 + 5) - i3, l + i3 + (j1 - 4), (i1 + 5) - i3);
g1.setColor(j2);
for (int j3 = 0; j3 < 4; j3++)
g1.drawLine(l + 1 + j3, (i1 + 4) - j3, l + 1 + j3 + ((j1 - 4) * l1) / l2, (i1 + 4) - j3);
a(g1, l + j1 / 2, i1, l1, k1, 0, 0);
}
public static void a(Graphics g1)
{
if (_DD17 != _B_B._BB[17])
{
return;
} else
{
g1.setClip(1, e.b - 12, 13, 11);
g1.drawImage(g_javax_microedition_lcdui_Image_static, 1, e.b - 12, 0);
return;
}
}
public static void b(Graphics g1)
{
if (_DD15 != _B_B._BB[15])
{
return;
} else
{
g1.setClip(e.a - 14, e.b - 12, 13, 11);
g1.drawImage(g_javax_microedition_lcdui_Image_static, e.a - 14 - 13, e.b - 12, 0);
return;
}
}
public static void c(Graphics g1)
{
if (_DD16 != _B_B._BB[16])
{
return;
} else
{
g1.setClip(e.a - 14, e.b - 12, 13, 11);
g1.drawImage(g_javax_microedition_lcdui_Image_static, e.a - 14 - 26, e.b - 12, 0);
return;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -