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

📄 children2.java

📁 里面是个完整的项目 解压后放到wtk的apps文件夹下就可以运行了
💻 JAVA
字号:
// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 27/1/2005 16:13:52
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 

import javax.microedition.lcdui.Graphics;

class Children2 extends Base
{

    Children2(boolean flag)
    {
        Z = GameCanvas.f;
        if(flag)
            eE();
        else
            Z(GameCanvas.Q);
        I = 0;
        C = 0;
        V = true;
        W = true;
        R = false;
        currentTimeMillis = System.currentTimeMillis();
        fillRect = drawImage = currentTimeMillis;
        H = 0;
    }

    final void I()
    {
        if(R)
            return;
        currentTimeMillis = System.currentTimeMillis();
        max = T - Z.T >= 0 ? T - Z.T : -(T - Z.T);
        if(X != 10 && X != 12)
            drawImage(false);
        super.I();
        switch(X)
        {
        case 11: // '\013'
        default:
            break;

        case 0: // '\0'
            if(!Z())
                break;
            if(currentTimeMillis())
                I(4, 5);
            else
                I(1, 0);
            break;

        case 1: // '\001'
            if(!Z())
            {
                I(3, 2);
                break;
            }
            if(currentTimeMillis() && max >= 24)
                I(3, 2);
            else
                I(2, 1);
            break;

        case 2: // '\002'
            if(c)
            {
                I(13, 12);
                return;
            }
            if(!Z())
            {
                I(3, 2);
                return;
            }
            if(currentTimeMillis() && max >= 24)
                I(3, 2);
            break;

        case 3: // '\003'
            if(!currentTimeMillis())
            {
                I(0, 5);
                return;
            }
            I(4, 5);
            break;

        case 4: // '\004'
            if(!Z())
                return;
            if(!currentTimeMillis() && Z.X != 19)
            {
                I(5, 6);
                return;
            }
            if(Z.X == 19 && currentTimeMillis() && I % 4 == 0)
                I(13, 12);
            if(max < 20)
                if(max > 4)
                {
                    if(B(-4, 0))
                        I(13, 12);
                    else
                        I(1, 0);
                } else
                if(B(8, 0))
                    I(1, 0);
                else
                    I(13, 12);
            if(Z.X == 19 && currentTimeMillis - drawImage > A)
            {
                if(max < 17)
                    return;
                drawImage(true);
                if(I > C + 6)
                {
                    if(O == 0 && Z.T < T + 50 || O != 0 && Z.T > T - 50)
                        I(8, -1);
                    drawImage = currentTimeMillis;
                }
                return;
            }
            if(Z.X == 20 || currentTimeMillis - fillRect <= G || currentTimeMillis - drawImage <= E)
                break;
            if(max < 16)
                return;
            drawImage(true);
            if(I > C + 6)
            {
                I(6, 7);
                fillRect = currentTimeMillis;
            }
            break;

        case 5: // '\005'
            if(!H())
                return;
            I(4, 5);
            break;

        case 8: // '\b'
            if(Z.X != 19)
            {
                I(4, 5);
                return;
            }
            if(Z.M > 2)
            {
                I(7, 8);
                Z.A();
            }
            break;

        case 7: // '\007'
            if(Y == 8)
                if(O == 0)
                {
                    if(T < Z.T + 32)
                        C(-1, 0);
                } else
                if(T > Z.T - 32)
                    C(-1, 0);
            if(!H())
                return;
            I(4, 5);
            break;

        case 6: // '\006'
            if(M == 8 && Z.X != 22 && Z.X != 11 && Z.X != 21)
                if(O != 0)
                {
                    if(Z.T >= T - 40 && Z.U < U + 12 && Z.U > U - 12)
                        Z.B();
                } else
                if(Z.T <= T + 40 && Z.U < U + 12 && Z.U > U - 12)
                    Z.B();
            if(!H())
                return;
            I(4, 5);
            break;

        case 9: // '\t'
            if(!H())
                return;
            I(4, 5);
            break;

        case 10: // '\n'
            O = Z.O;
            if(!H())
                return;
            R = true;
            break;

        case 12: // '\f'
            if(!H())
                return;
            if(U - GameCanvas.d.A <= 147)
                U += 10;
            else
                R = true;
            break;

        case 13: // '\r'
            if(!H())
                return;
            I(4, 5);
            break;
        }
        I++;
    }

    final void I(int i, int j)
    {
        switch(i)
        {
        case 0: // '\0'
            O();
            N();
            break;

        case 7: // '\007'
            GameCanvas.playSound(5);
            break;
        }
        super.I(i, j);
    }

    final void paint(int i, int j)
    {
        if(!R)
        {
            if(this.i != i)
                return;
            int k = U + 10;
            boolean flag = false;
            boolean flag1 = false;
            int l = T - GameCanvas.d.JJ - (O != 0 ? L.D[M] - 1 - L.E[M] : L.E[M]);
            int i1 = k - GameCanvas.d.A - L.F[M];
            if(l + L.D[M] < 0 || l >= 128 || i1 + L.F[M] < 0 || i1 >= 127)
                return;
            if(X == 10)
            {
                GameCanvas.g.setClip(l, Math.max(10, i1), L.D[M], L.F[M] - (Math.max(10, i1) - i1));
                Graphics _tmp = GameCanvas.g;
                Graphics _tmp1 = GameCanvas.g;
                GameCanvas.g.drawImage(GameCanvas.getImage(3), l - L.C[M], i1 - L.B[M], 0x10 | 4);
            } else
            {
                GameCanvas.g.setClip(0, 10, 128, 117);
                if(O == 0)
                {
                    Graphics _tmp2 = GameCanvas.g;
                    Graphics _tmp3 = GameCanvas.g;
                    GameCanvas.g.drawImage(GameCanvas.getImage(GameCanvas.t[L.C[M] << 1]), l, i1, 0x10 | 4);
                } else
                {
                    Graphics _tmp4 = GameCanvas.g;
                    Graphics _tmp5 = GameCanvas.g;
                    GameCanvas.g.drawImage(GameCanvas.getImage(GameCanvas.t[(L.C[M] << 1) + 1]), l, i1, 0x10 | 4);
                }
            }
        }
    }

    private final boolean Z()
    {
        if(Z.T < T + 72 && Z.T > T - 72 && Z.U < U + 12 && Z.U > U - 12)
        {
            Z.I = this;
            return true;
        }
        if(Z.I == this)
        {
            Z.I = null;
            I(0);
        }
        return false;
    }

    private final boolean currentTimeMillis()
    {
        return Z.T <= T + 36 && Z.T >= T - 36 && Z.U < U + 12 && Z.U > U - 12;
    }

    private final void drawImage(boolean flag)
    {
        if(!Z())
            return;
        if(!flag && max <= 26)
            return;
        if(O == 0)
        {
            if(Z.T < T)
                O = 8192;
        } else
        if(Z.T >= T)
            O = 0;
    }

    final void cC()
    {
        I(0, 5);
        T = D;
        U = F;
        O = J;
        z = S;
        R = false;
        BBBB = 0;
    }

    final void B()
    {
        if(X == 9 || X == 10 || X == 12)
            return;
        z--;
        if(z <= 0)
        {
            X = 9;
            D();
            return;
        } else
        {
            I(9, 9);
            GameCanvas.playSound(2);
            N = -1;
            return;
        }
    }

    final void D()
    {
        GameCanvas.playSound(2);
        M();
        L();
        z = 0;
        if(X != 9)
        {
            O = Z.O;
            I(10, 11);
        } else
        {
            I(12, 10);
        }
        if(Z.P)
            Z.C = true;
        Z.I = null;
        GameCanvas.s = null;
        I(1);
    }

    final void I(int i)
    {
        switch(i)
        {
        default:
            break;

        case 0: // '\0'
            if(H != 0)
            {
                GameCanvas.g.setClip(84, 1, 45, 8);
                GameCanvas.g.setColor(0);
                GameCanvas.g.fillRect(84, 1, 45, 8);
                H = 0;
            }
            break;

        case 1: // '\001'
            if(H != z)
            {
                GameCanvas.g.setClip(84, 1, 45, 8);
                GameCanvas.g.setColor(0);
                GameCanvas.g.fillRect(84, 1, 45, 8);
                GameCanvas.g.setClip(84, 1, z * 9, 8);
                Graphics _tmp = GameCanvas.g;
                Graphics _tmp1 = GameCanvas.g;
                GameCanvas.g.drawImage(GameCanvas.imageW, 84, 1, 0x10 | 4);
                H = z;
            }
            break;
        }
    }

    final void F()
    {
        X = 9;
        D();
    }

    final void J()
    {
        if(BBBB != 0)
        {
            return;
        } else
        {
            BBBB = 1;
            GameCanvas.s = this;
            setClip = System.currentTimeMillis();
            return;
        }
    }

    final void S()
    {
        if(BBBB == 1)
            if(System.currentTimeMillis() - setClip < 1000L)
            {
                if((GameCanvas.no_of_run & 2) == 0)
                    I(1);
                else
                    I(0);
            } else
            {
                BBBB = 2;
            }
        if(BBBB == 2)
            I(1);
    }

    Children6 Z;
    long currentTimeMillis;
    long drawImage;
    long fillRect;
    int max;
    int I;
    int C;
    int BBBB;
    long setClip;
    int D;
    int F;
    int J;
    int S;
    long A;
    long E;
    long G;
    int H;
}

⌨️ 快捷键说明

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