📄 j.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 java.io.InputStream;
import javax.microedition.media.*;
public class j
{
static j do = null;
l if;
Player for;
int a;
public static j a(l l1)
{
if (do == null)
do = new j(l1);
return do;
}
public void if(int i)
{
String s = "";
switch (i)
{
case 0: // '\0'
s = "/mainmenu.mid";
break;
case 2: // '\002'
s = "/mainmenu.mid";
break;
case 1: // '\001'
s = "/fight.mid";
break;
}
for = a(s);
if (for != null)
{
for.setLoopCount(-1);
try
{
for.realize();
for.prefetch();
}
catch (MediaException mediaexception) { }
}
}
Player a(String s)
{
Player player = null;
if (for == null)
try
{
InputStream inputstream;
player = Manager.createPlayer(inputstream = if.do.getClass().getResourceAsStream(s), "audio/midi");
inputstream.close();
}
catch (Exception exception) { }
else
return for;
return player;
}
public j(l l1)
{
for = null;
a = -1;
if = l1;
}
public void a()
{
if (for != null)
try
{
for.start();
}
catch (MediaException mediaexception) { }
}
public void if()
{
if (for != null)
try
{
for.stop();
}
catch (MediaException mediaexception) { }
}
public void a(int i)
{
p = p.cG;
if (!p.bR)
return;
try
{
if (i != -1 && i != a || a == -1)
{
if (for != null)
{
for.stop();
for.close();
}
if (i != -1)
{
a = i;
} else
{
a = 1;
i = a;
}
String s = "";
switch (i)
{
case 0: // '\0'
s = "/mainmenu.mid";
break;
case 2: // '\002'
s = "/mainmenu.mid";
break;
case 1: // '\001'
s = "/fight.mid";
break;
}
InputStream inputstream = if.do.getClass().getResourceAsStream(s);
for = Manager.createPlayer(inputstream, "audio/midi");
if (for != null)
{
for.setLoopCount(-1);
for.realize();
for.prefetch();
}
inputstream.close();
for.start();
} else
{
for.start();
}
}
catch (Exception exception) { }
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -