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

📄 c.java

📁 J2ME拳王游戏
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
        firstElement();
        O = createImage(Q, 0);
        if(Q == serviceRepaints)
            serviceRepaints++;
        U = serviceRepaints;
        P = createImage(U, 1);
        P.I(true);
        freeMemory();
        getWidth = 0;
        longValue = System.currentTimeMillis() + 2000L;
        C = 6;
        Kof _tmp = I;
        put = Integer.valueOf(d[Kof.G]).intValue();
        if(put == 0L)
            put = 99L;
    }

    public final void run()
    {
        try
        {
            Thread thread = Thread.currentThread();
            firstElement = true;
            int i1 = 0;
            while(firstElement) 
            {
                synchronized(this)
                {
                    while(append) 
                    {
                        System.out.println("paused");
                        i1++;
                        if(M)
                        {
                            repaint();
                            serviceRepaints();
                        }
                        wait();
                        if(i1 % 50 == 0)
                            System.out.println("PAused count");
                    }
                    fillRect();
                }
                if(!isShown() && (C == 11 || C == 7 || x))
                    I(true);
                if(!append)
                {
                    repaint();
                    serviceRepaints();
                }
                long l1 = C();
                if(l1 > close)
                    close = l1 + 1L;
                Thread.sleep(close - l1);
                close += createImage;
                SI++;
                if(SI % 50 == 0)
                    System.out.println("thread is still runnning: " + Runtime.getRuntime().freeMemory());
            }
            System.out.println("ANIM THREAD NOT CURRENT THREAD NOW");
        }
        catch(Throwable throwable)
        {
            System.out.println("Exception e: " + throwable);
        }
        synchronized(this)
        {
            currentThread = true;
            notifyAll();
        }
    }

    public final void paint(Graphics g1)
    {
        if(q)
            return;
        if(!M || C == 18)
        {
            isShown(g1, 0);
            Kof.C.I(g1, "Cargando...", (getWidth() - "Cargando...".length() * Kof.C.I) / 2, getHeight() / 2, 20);
            if(append)
            {
                Kof.C.I(g1, "Pausa", (getWidth() - "Pausa".length() * Kof.C.I) / 2, getHeight() / 2 + 40, 20);
                Kof.C.I(g1, "Salir", 0, getHeight() - 16, 20);
                Kof.C.I(g1, "Continuar", getWidth() - "Continuar".length() * Kof.C.I, getHeight() - 16, 20);
            }
            return;
        }
        try
        {
            synchronized(g1)
            {
                if(C == 7);
            }
            if(u)
            {
                X = true;
                u = false;
            }
            if(!v && !w && !x)
            {
                if(O.B() || P.B())
                    X = false;
                else
                    X = true;
                Y = true;
                drawImage(g1);
                getGameAction(g1);
                O.I(g1);
                P.I(g1);
                currentTimeMillis(g1);
                if(FI)
                    if(JI)
                        getRuntime(g1, length);
                    else
                        getResourceAsStream(g1, getWidth);
            } else
            if(v)
                gc(g1);
            else
            if(w)
                get(g1);
            else
            if(x)
                getClass(g1);
            if(append)
            {
                Kof.C.I(g1, "Pausa", (getWidth() - "Pausa".length() * Kof.C.I) / 2, getHeight() / 2 + 40, 20);
                Kof.C.I(g1, "Salir", 0, getHeight() - 16, 20);
                Kof.C.I(g1, "Continuar", getWidth() - "Continuar".length() * Kof.C.I, getHeight() - 16, 20);
            }
        }
        catch(Throwable throwable)
        {
            a = "paint:" + throwable;
            System.out.println(a);
        }
        return;
    }

    public final void currentTimeMillis(Graphics g1)
    {
        for(int i1 = 0; i1 < 10; i1++)
            if(c[i1] != null)
            {
                int ai[] = (int[])c[i1].firstElement();
                long l1 = ((Long)c[i1].lastElement()).longValue();
                for(int j1 = 0; j1 < 10; j1++)
                    if(j1 != i1 && c[j1] != null)
                    {
                        int ai1[] = (int[])c[j1].firstElement();
                        if(ai[3] != ai1[3] && Z(ai[0], 16, ai1[0], 16) && I(ai[1], 16, ai1[1], 16))
                        {
                            c[i1] = null;
                            c[j1] = null;
                            X = true;
                            i1 = 10;
                            return;
                        }
                    }

                Object obj = null;
                ai[5] = ai[5] != 0 ? 0 : 1;
                if(Z(ai[0], 50, 0, CI))
                    if(!I(ai[1], 50, j, BI));
                if(l1 == 0L)
                    ai[0] += 7 * ai[4];
                if(Z(ai[0], 50, O.x + O.S(), 50) && I(ai[1], 50, O.y + O.A(), 50))
                    O.I(g1);
                if(Z(ai[0], 50, P.x + P.S(), 50) && I(ai[1], 50, P.y + P.A(), 50))
                    P.I(g1);
                char c1 = '\0';
                c1 = '\u2000';
                int k1 = 1;
                k1 = 0;
                int i2 = 6;
                i2 = 0;
                if(ai[2] == 0)
                {
                    if(ai[4] == 1)
                        I(g1, N[3][0], 50, 50, 300, 100, ai[0], ai[1], 0);
                    else
                        I(g1, N[3][k1], 50, 50, i2 * 50, 100, ai[0], ai[1], c1);
                } else
                if(ai[2] == 1)
                {
                    if(ai[4] == 1)
                        I(g1, N[2][0], 50, 50, 300, 100, ai[0], ai[1], 0);
                    else
                        I(g1, N[2][k1], 50, 50, i2 * 50, 100, ai[0], ai[1], c1);
                } else
                if(ai[2] == 2)
                    if(ai[4] == 1)
                        I(g1, N[1][0], 50, 50, 300, 100, ai[0], ai[1], 0);
                    else
                        I(g1, N[1][k1], 50, 50, i2 * 50, 100, ai[0], ai[1], c1);
                if(l1 != 0L && l1 < System.currentTimeMillis())
                    c[i1] = null;
                if(c[i1] != null && (ai[0] > Z || ai[0] + 50 < 0))
                    c[i1] = null;
                if(c[i1] == null)
                {
                    X = true;
                } else
                {
                    c[i1].setElementAt(ai, 0);
                    c[i1].setElementAt(new Long(l1), 1);
                    ai = null;
                }
            }

    }

    public final void drawImage(Graphics g1)
    {
        if(z)
        {
            I(g1, Kof.M, II, ZI, II * m, 0, 0, 0, 0);
            I(g1, Kof.M, II, ZI, II * o, 0, Z - II, 0, 0);
            I(g1, Kof.M, II, ZI, II * n, 0, 0, ZI, 0);
            I(g1, Kof.M, II, ZI, II * p, 0, Z - II, ZI, 0);
            if(m != Q)
                I(g1, Kof.M, II, ZI, II * 4, 0, 0, ZI, 0);
            if(o != U)
                I(g1, Kof.M, II, ZI, II * 4, 0, Z - II, ZI, 0);
        } else
        {
            I(g1, Kof.M, II, ZI, II * Q, 0, 0, 0, 0);
            I(g1, Kof.M, II, ZI, II * U, 0, Z - II, 0, 0);
        }
    }

    private final int drawRect(int i1)
    {
        int j1 = getGameAction(i1);
        switch(j1)
        {
        case 1: // '\001'
            return 1;

        case 6: // '\006'
            return 2;

        case 2: // '\002'
            return 3;

        case 5: // '\005'
            return 4;

        case 8: // '\b'
            return 5;

        case 3: // '\003'
        case 4: // '\004'
        case 7: // '\007'
        default:
            switch(i1)
            {
            case 35: // '#'
                return 6;

            case 42: // '*'
                return 7;

            case 49: // '1'
                return 8;

            case 50: // '2'
                return 9;

            case 51: // '3'
                return 10;

            case 52: // '4'
                return 11;

            case 53: // '5'
                return 12;

            case 54: // '6'
                return 13;

            case 55: // '7'
                return 14;

            case 56: // '8'
                return 15;

            case 57: // '9'
                return 16;

            case 48: // '0'
                return 17;

            case 36: // '$'
            case 37: // '%'
            case 38: // '&'
            case 39: // '\''
            case 40: // '('
            case 41: // ')'
            case 43: // '+'
            case 44: // ','
            case 45: // '-'
            case 46: // '.'
            case 47: // '/'
            default:
                return 0;
            }
        }
    }

    final boolean B()
    {
        if(L[2] == 15 && L[1] == 13 || L[2] == 2 && L[1] == 4)
            return true;
          goto _L1
        Throwable throwable;
        throwable;
_L1:
        return false;
    }

    final boolean D()
    {
        if(L[4] == 15 && L[3] == 13 && L[2] == 15 && L[1] == 13 || L[4] == 2 && L[3] == 4 && L[2] == 2 && L[1] == 4)
            return true;
          goto _L1
        Throwable throwable;
        throwable;
_L1:
        return false;
    }

    final boolean F()
    {
        if(L[4] == 15 && L[3] == 11 && L[2] == 15 && L[1] == 11 || L[4] == 2 && L[3] == 3 && L[2] == 2 && L[1] == 3)
            return true;
          goto _L1
        Throwable throwable;
        throwable;
_L1:
        return false;
    }

    final boolean J()
    {
        return L[2] == 15 && L[1] == 11 || L[2] == 2 && L[1] == 3;
    }

    private final void drawString(int i1)
    {
        try
        {
            for(int j1 = 7; j1 > 0; j1--)
                L[j1] = L[j1 - 1];

            L[0] = i1;
        }
        catch(Throwable throwable) { }
    }

    protected final void keyPressed(int i1)
    {
        if(C == 11)
        {
            C = 5;
            return;
        }
        if(C == 16)
        {
            if(notifyAll >= System.currentTimeMillis());
            C = 5;
            return;
        }
        if(C != 7 && C != 6 && !v && !w && !x)
            return;
        if(append)
        {
            if(i1 == -7)
            {
                System.out.println("is pasued");
                I(false);
            } else
            if(i1 == -6)
            {
                M = false;
                I(false);
                q = true;
                Kof.N.I(false);
                firstElement = false;
            }
            return;
        }
        if(i1 == 48)
        {
            I.I();
            return;
        }
        if(C == 6)
            return;
        try
        {
            fillRect = i1;
            int j1 = drawRect(fillRect);
            drawString(j1);
            O.Z(L[0]);
        }
        catch(Throwable throwable) { }
        return;
    }

    protected final void keyReleased(int i1)
    {
        if(C != 7)
        {
            return;
        } else
        {
            fillRect = 0;
            O.Z(fillRect);
            return;
        }
    }

    final int I(int i1)
    {
        byte byte0;
        int j1;
        byte0 = 0;
        if(i1 == 0)
            byte0 = 0;
        else
            byte0 = 5;
        j1 = byte0;
          goto _L1
_L3:
        if(c[j1] == null)
            return j1;
        j1++;
_L1:
        if(j1 < byte0 + 5) goto _L3; else goto _L2
        Throwable throwable;
        throwable;
_L2:
        return -1;
    }

    final void I(boolean flag, boolean flag1, int i1, int j1, int k1, int l1)
    {
        try
        {
            int i2 = 0;
            int ai[] = new int[7];
            if(flag1)
                i2 = 1;
            int j2 = I(i2);
            c[j2] = new Vector(2);
            ai[0] = k1;
            ai[1] = l1;
            ai[2] = i1;
            ai[3] = i2;
            ai[4] = j1;
            ai[5] = 0;
            if(flag)
                ai[6] = 1;
            else
                ai[6] = 0;
            c[j2].addElement(ai);
            c[j2].addElement(new Long(0L));
        }
        catch(Throwable throwable) { }
    }

    private final void fillRect()
    {
        try
        {
            FI = false;
            JI = false;
            v = false;
            w = false;
            x = false;
            switch(C)
            {
            case 8: // '\b'
            case 9: // '\t'
            case 11: // '\013'
            case 14: // '\016'
            case 15: // '\017'
            default:
                break;

            case 17: // '\021'
                if(++B > 40)

⌨️ 快捷键说明

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