⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 a.java

📁 大富翁手机游戏
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
// 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.util.Timer;
import javax.microedition.lcdui.*;

public class a extends Canvas
    implements CommandListener
{

    private final RichmanTaiwanMIDlet u;
    private Timer a;
    private Image e;
    private int c;
    private int r;
    private int n;
    private int o;
    private String i[] = {
        "新游戏", "继续游戏", "最高记录", "说明", "声音设定", "结束游戏"
    };
    private int w[] = {
        20, 45, 70, 95, 120, 145
    };
    private int b;
    private int x;
    private int j;
    private String s[] = {
        "孙小美", "阿土伯", "钱夫人", "返回"
    };
    private String y[] = {
        "开启", "关闭"
    };
    private int B[] = {
        50, 75, 100, 125
    };
    private int l;
    private int q;
    private int k;
    public boolean m;
    private Command p;
    private Command h;
    private Command z;
    private Font v;
    private Font d;
    String A;
    public int t;
    public int g;
    private boolean f;

    public a(RichmanTaiwanMIDlet richmantaiwanmidlet, Image image, boolean flag)
    {
        a = null;
        e = null;
        m = true;
        t = -1;
        g = 0;
        f = false;
        u = richmantaiwanmidlet;
        A = A;
        c = getWidth();
        r = getHeight();
        n = c / 2;
        o = r / 2;
        b = 51;
        x = 74;
        j = 20;
        l = 57;
        q = 62;
        k = 20;
        if(flag)
        {
            a = new Timer();
            a.schedule(new f(this), 2000L, 2000L);
        } else
        {
            t = 3;
        }
        e = image;
        v = Font.getFont(0, 0, 8);
        d = Font.getFont(0, 0, 16);
    }

    public void a()
    {
        if(t != 2)
            t++;
        repaint();
    }

    private Image a(String s1)
    {
        return Image.createImage(s1);
        Exception exception;
        exception;
        return null;
    }

    public void paint(Graphics g1)
    {
        g1.setColor(255, 255, 255);
        if(t == -1)
        {
            Graphics _tmp = g1;
            Graphics _tmp1 = g1;
            g1.drawImage(a("/softstar.png"), n, o, 0x1 | 0x2);
            g1.setColor(0, 0, 0);
            g1.drawString("按任意键进入", n, 182, 33);
        } else
        if(t == 0)
        {
            g1.fillRect(0, 0, c, r);
            Graphics _tmp2 = g1;
            Graphics _tmp3 = g1;
            g1.drawImage(a("/joypark-s.png"), n, o, 0x1 | 0x2);
            g1.setColor(0, 0, 0);
            g1.drawString("按任意键进入", n, 182, 33);
        } else
        if(t == 1)
        {
            g1.fillRect(0, 0, c, r);
            g1.setColor(0, 0, 0);
            Graphics _tmp4 = g1;
            Graphics _tmp5 = g1;
            g1.drawString("网星史克威尔艾尼克斯", n, 45, 0x1 | 0x10);
            Graphics _tmp6 = g1;
            Graphics _tmp7 = g1;
            g1.drawString("授权", n, 70, 0x1 | 0x10);
            Graphics _tmp8 = g1;
            Graphics _tmp9 = g1;
            g1.drawString("www.joypark.com.cn", n, 110, 0x1 | 0x10);
            Graphics _tmp10 = g1;
            Graphics _tmp11 = g1;
            g1.drawString("伟特立群代理发行", n, 140, 0x1 | 0x10);
            g1.drawString("按任意键进入", n, 182, 33);
        } else
        if(t == 2)
        {
            if(p == null)
            {
                p = new Command("开始", 4, 1);
                addCommand(p);
                setCommandListener(this);
            }
            u.e = 0;
            RichmanTaiwanMIDlet _tmp12 = u;
            if(RichmanTaiwanMIDlet.l)
            {
                RichmanTaiwanMIDlet _tmp13 = u;
                RichmanTaiwanMIDlet.n.a("/sound/01-title.mid", -1);
            }
            RichmanTaiwanMIDlet _tmp14 = u;
            if(RichmanTaiwanMIDlet.l)
            {
                RichmanTaiwanMIDlet _tmp15 = u;
                RichmanTaiwanMIDlet.n.a(false);
            } else
            {
                RichmanTaiwanMIDlet _tmp16 = u;
                RichmanTaiwanMIDlet.n.a(true);
            }
            Graphics _tmp17 = g1;
            Graphics _tmp18 = g1;
            g1.drawImage(e, n, o, 0x1 | 0x2);
            if(a != null)
            {
                a.cancel();
                a = null;
            }
        } else
        if(t == 3)
        {
            if(m)
            {
                Graphics _tmp19 = g1;
                Graphics _tmp20 = g1;
                g1.drawImage(e, n, o, 0x1 | 0x2);
                if(h == null)
                    h = new Command("选择", 4, 1);
                addCommand(h);
                if(z == null)
                    z = new Command("返回", 2, 1);
                addCommand(z);
                setCommandListener(this);
            }
            m = false;
            g1.setFont(v);
            for(byte byte0 = 0; byte0 < i.length; byte0++)
            {
                if(g == byte0)
                    g1.setColor(0, 0, 255);
                else
                    g1.setColor(0, 0, 0);
                g1.fillRect(b, w[byte0], x, j);
                g1.setColor(255, 255, 0);
                g1.drawRect(b, w[byte0], x, j);
                g1.setColor(255, 255, 255);
                g1.drawString(i[byte0], (176 - v.stringWidth(i[byte0])) / 2, w[byte0], 20);
            }

        } else
        if(t == 4)
        {
            if(m)
            {
                Graphics _tmp21 = g1;
                Graphics _tmp22 = g1;
                g1.drawImage(e, n, o, 0x1 | 0x2);
            }
            m = false;
            g1.setFont(v);
            for(byte byte1 = 0; byte1 < s.length; byte1++)
            {
                if(g == byte1)
                    g1.setColor(0, 0, 255);
                else
                    g1.setColor(0, 0, 0);
                g1.fillRect(l, B[byte1], q, k);
                g1.setColor(255, 255, 1);
                g1.drawRect(l, B[byte1], q, k);
                g1.setColor(255, 255, 255);
                g1.drawString(s[byte1], (176 - v.stringWidth(s[byte1])) / 2, B[byte1], 20);
            }

        } else
        if(t == 6)
        {
            Graphics _tmp23 = g1;
            Graphics _tmp24 = g1;
            g1.drawImage(e, n, o, 0x1 | 0x2);
            g1.setFont(v);
            g1.setColor(0, 0, 0);
            g1.fillRect(55, 90, 66, 20);
            g1.setColor(255, 255, 1);
            g1.drawRect(55, 90, 66, 20);
            g1.setColor(255, 255, 255);
            g1.drawString("请稍候...", (176 - v.stringWidth("请稍候...")) / 2, 90, 20);
        } else
        if(t == 11)
        {
            if(m)
            {
                Graphics _tmp25 = g1;
                Graphics _tmp26 = g1;
                g1.drawImage(e, n, o, 0x1 | 0x2);
            }
            m = false;
            g1.setFont(v);
            for(byte byte2 = 0; byte2 < 2; byte2++)
            {
                if(g == byte2)
                    g1.setColor(0, 0, 255);
                else
                    g1.setColor(0, 0, 0);
                g1.fillRect(b, 70 + 30 * byte2, x, j);
                g1.setColor(255, 255, 1);
                g1.drawRect(b, 70 + 30 * byte2, x, j);
                g1.setColor(255, 255, 255);
                g1.drawString(y[byte2], (176 - v.stringWidth(y[byte2])) / 2, 70 + 30 * byte2, 20);
            }

        }
    }

    public void keyPressed(int i1)
    {
        if(f)
            return;
        if(t == -1 || t == 0 || t == 1)
        {

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -