📄 f.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.InputStream;
import javax.microedition.lcdui.Display;
import javax.microedition.media.*;
import javax.microedition.media.control.VolumeControl;
public final class f
{
public static int a = -1;
public static Player a[] = null;
public static boolean a[] = {
false, false, false, false, true, true, true
};
public static long a = -1L;
public f()
{
}
public static void a(int i)
{
if(a != -1L)
while(System.currentTimeMillis() - a < 100L) ;
a = System.currentTimeMillis();
if(a[i])
b(i);
if(a[i] == null)
c(i);
if(a[i] != null)
{
a();
if(a[i])
a[i].setMediaTime(0L);
a[i].start();
a = i;
}
return;
JVM INSTR dup ;
Exception exception;
exception;
printStackTrace();
}
public static void a()
{
if(a != -1)
try
{
if(a[a].getState() != 0)
a[a].stop();
a = -1;
return;
}
catch(Exception _ex) { }
}
private static void b(int i)
{
if(a[i] != null)
try
{
if(a[i].getState() != 0)
a[i].stop();
a[i].deallocate();
a[i].close();
a[i] = null;
return;
}
catch(Exception _ex) { }
}
public static void b()
{
Display display;
(display = Display.getDisplay(HarryMidlet.a)).vibrate(200);
}
private static void c(int i)
{
String s = "";
boolean flag = true;
switch(i)
{
case 0: // '\0'
flag = false;
s = "spellcollision.amr";
break;
case 1: // '\001'
flag = false;
s = "wandverygood.amr";
break;
case 2: // '\002'
flag = false;
s = "cauldron_splash.amr";
break;
case 3: // '\003'
flag = false;
s = "door_open.amr";
break;
case 4: // '\004'
s = "defeat.mid";
break;
case 5: // '\005'
s = "mainmenu.mid";
break;
case 6: // '\006'
s = "victory.mid";
break;
}
if(s.compareTo("") != 0)
try
{
InputStream inputstream = "a".getClass().getResourceAsStream("/" + s);
if(flag)
a[i] = Manager.createPlayer(inputstream, "audio/midi");
else
a[i] = Manager.createPlayer(inputstream, "audio/amr");
a[i].realize();
a[i].prefetch();
VolumeControl volumecontrol;
if((volumecontrol = (VolumeControl)a[i].getControl("VolumeControl")) != null && a[i])
volumecontrol.setLevel(70);
return;
}
catch(Exception _ex)
{
a[i] = null;
}
}
public static void c()
{
a = new Player[7];
for(int i = 0; i < 7; i++)
c(i);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -