📄 bag.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
// Source File Name: Bag.java
package falcofinder.Wien;
import java.util.Vector;
import javax.microedition.lcdui.Font;
import javax.microedition.lcdui.Graphics;
// Referenced classes of package falcofinder.Wien:
// AreaA
public class Bag extends Vector
{
private AreaA areaa;
public Bag(AreaA areaa)
{
this.areaa = areaa;
}
protected void drawBag(Graphics g)
{
areaa.status = "bag";
int spaceitems = 11;
g.setColor(0, 0, 0);
g.fillRect(0, 0, areaa.width, areaa.height);
g.setFont(Font.getFont(32, 0, 8));
g.setColor(255, 255, 255);
if(size() > 0)
g.drawString("Your Bag Contains:", 1, 1, 20);
else
g.drawString("Your bag is empty", 1, 1, 20);
for(int i = 0; i < size(); i++)
{
if(i == 0)
g.drawString("1. " + elementAt(i), 1, 4 + spaceitems, 20);
if(i == 1)
g.drawString("3. " + elementAt(i), 1, 4 + spaceitems, 20);
if(i == 2)
g.drawString("9. " + elementAt(i), 1, 4 + spaceitems, 20);
spaceitems += 10;
}
g.drawString("5. Close Bag", 1, 4 + spaceitems, 20);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -