📄 global.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 javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Displayable;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
public class Global extends MIDlet
{
Game gm;
GameScreen gs;
GameTask gt;
RMSGameScores hiScores;
Level lv;
Strings st;
public Global()
{
lv = new Level(this);
st = new Strings();
gm = new Game(this);
hiScores = new RMSGameScores();
gs = new GameScreen(this);
gt = new GameTask(this);
gm.hassave();
gm.restoreOpt();
}
protected void destroyApp(boolean flag)
throws MIDletStateChangeException
{
if(!gs.newGame)
gm.save();
else
gm.delete();
gm.saveOpt();
}
protected void pauseApp()
{
}
public void quit()
{
try
{
destroyApp(false);
notifyDestroyed();
}
catch(Exception exception) { }
}
protected void startApp()
throws MIDletStateChangeException
{
Displayable displayable = Display.getDisplay(this).getCurrent();
if(displayable == null)
{
Display.getDisplay(this).setCurrent(gs);
gs.newGame = true;
gs.pfLogo();
} else
{
Display.getDisplay(this).setCurrent(displayable);
if(displayable == gs)
{
gs.mode = 1;
gs.mode = 1;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -