📄 levelinfo.java
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: LevelInfo.java
import javax.microedition.lcdui.Font;
import javax.microedition.lcdui.Graphics;
public class LevelInfo
{
public LevelInfo(int state, GameFC gameFC)
{
blink = false;
done = false;
start = 0L;
this.state = state;
this.gameFC = gameFC;
start = System.currentTimeMillis();
}
public void paint(Graphics g)
{
Font font = Font.getFont(0, 0, 16);
g.setFont(font);
int h = font.getHeight();
if(state == 0)
{
String str = "GAME OVER";
int w = font.stringWidth(str);
g.setColor(255, 255, 255);
Graphics _tmp = g;
Graphics _tmp1 = g;
g.drawString(str, 48 - w / 2, 32 - h / 2, 4 | 0x10);
} else
{
String str = "LEVEL " + gameFC.level;
int w = font.stringWidth(str);
blink = !blink;
if(blink)
g.setColor(255, 255, 255);
else
g.setColor(100, 100, 0);
Graphics _tmp2 = g;
Graphics _tmp3 = g;
g.drawString(str, 48 - w / 2, 32 - h / 2, 4 | 0x10);
}
if(System.currentTimeMillis() > start + 3000L && start != 0L)
done = true;
}
private GameFC gameFC;
public int state;
public boolean blink;
public boolean done;
private long start;
public static final int STATE_GAME_OVER = 0;
public static final int STATE_NEXT_LEVEL = 1;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -