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

📄 aa.java

📁 哈利波特与凤凰令的一个小游戏
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
        catch(Exception _ex) { }
        if((n & a(i1)) != 0)
        {
            return;
        } else
        {
            n |= a(i1);
            return;
        }
    }

    public final void keyReleased(int i1)
    {
        n &= ~a(i1);
    }

    private int a(int i1)
    {
        switch(i1)
        {
        case 52: // '4'
            return 4;

        case 54: // '6'
            return 8;

        case 50: // '2'
            return 1;

        case 56: // '8'
            return 2;

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

        case 48: // '0'
            return 16384;

        case -6: 
            return 1024;

        case -7: 
            return 2048;

        case 49: // '1'
            return 64;

        case 51: // '3'
            return 128;

        case 55: // '7'
            return 256;

        case 57: // '9'
            return 512;

        case 35: // '#'
            return 32768;

        case 42: // '*'
            return 0x10000;

        case -5: 
        case -4: 
        case -3: 
        case -2: 
        case -1: 
        case 0: // '\0'
        case 1: // '\001'
        case 2: // '\002'
        case 3: // '\003'
        case 4: // '\004'
        case 5: // '\005'
        case 6: // '\006'
        case 7: // '\007'
        case 9: // '\t'
        case 10: // '\n'
        case 11: // '\013'
        case 12: // '\f'
        case 13: // '\r'
        case 14: // '\016'
        case 15: // '\017'
        case 16: // '\020'
        case 17: // '\021'
        case 18: // '\022'
        case 19: // '\023'
        case 20: // '\024'
        case 21: // '\025'
        case 22: // '\026'
        case 23: // '\027'
        case 24: // '\030'
        case 25: // '\031'
        case 26: // '\032'
        case 27: // '\033'
        case 28: // '\034'
        case 29: // '\035'
        case 30: // '\036'
        case 31: // '\037'
        case 32: // ' '
        case 33: // '!'
        case 34: // '"'
        case 36: // '$'
        case 37: // '%'
        case 38: // '&'
        case 39: // '\''
        case 40: // '('
        case 41: // ')'
        case 43: // '+'
        case 44: // ','
        case 45: // '-'
        case 46: // '.'
        case 47: // '/'
        default:
            switch(getGameAction(i1))
            {
            case 2: // '\002'
                return 4;

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

            case 1: // '\001'
                return 1;

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

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

            case 3: // '\003'
            case 4: // '\004'
            case 7: // '\007'
            default:
                return 0;
            }
        }
    }

    public static void b()
    {
        if(!w.b)
        {
            return;
        } else
        {
            f.b();
            return;
        }
    }

    public static int a()
    {
        return (int)System.currentTimeMillis() & 0x7fffffff;
    }

    private static void j(int i1)
    {
        try
        {
            Thread.sleep(i1);
            return;
        }
        catch(Exception _ex)
        {
            return;
        }
    }

    public static synchronized void c()
    {
        System.gc();
        j(20);
    }

    private static byte[] a(String s1, int i1)
    {
        if(i1 == 0)
        {
            boolean flag = false;
            byte abyte1[] = new byte[128];
            try
            {
                a = "a".getClass().getResourceAsStream("/" + s1);
                int j1;
                while((j1 = a.read(abyte1)) == 128) 
                    i1 += j1;
                i1 += j1;
                a.close();
            }
            catch(Exception _ex) { }
        }
        a = null;
        if(i1 == 0)
        {
            return null;
        } else
        {
            a(s1);
            byte abyte0[];
            a(abyte0 = new byte[i1]);
            d();
            return abyte0;
        }
    }

    public static void a(String s1)
    {
        l = false;
        try
        {
            a = "a".getClass().getResourceAsStream("/" + s1);
            return;
        }
        catch(Exception _ex)
        {
            return;
        }
    }

    public static void b(String s1)
    {
        a(s1 + "0");
        H = 0;
        b = s1;
        l = true;
    }

    public static int b()
    {
        int i1 = 0;
        return i1 = a.read() & 0xff;
        JVM INSTR pop ;
        if(!l)
            return 0;
        d();
        a(b + ++H);
        try
        {
            i1 = a.read() & 0xff;
        }
        catch(Exception _ex) { }
        return i1;
    }

    public static byte a()
    {
        byte byte0 = 0;
        return byte0 = (byte)(a.read() & 0xff);
        JVM INSTR pop ;
        if(!l)
            return 0;
        d();
        a(b + ++H);
        try
        {
            byte0 = (byte)(a.read() & 0xff);
        }
        catch(Exception _ex) { }
        return byte0;
    }

    public static boolean a()
    {
        return a() == 1;
    }

    public static short a()
    {
        return (short)(a() & 0xff | (a() & 0xff) << 8);
    }

    public static int c()
    {
        return a() & 0xff | (a() & 0xff) << 8 | (a() & 0xff) << 16 | (a() & 0xff) << 24;
    }

    public static void a(byte abyte0[])
    {
        try
        {
            int i1;
            if((i1 = a.read(abyte0)) != abyte0.length && l)
                for(; i1 != abyte0.length; i1 += a.read(abyte0, i1, abyte0.length - i1))
                {
                    d();
                    a(b + ++H);
                }

            return;
        }
        catch(Exception _ex)
        {
            return;
        }
    }

    public static void d()
    {
        try
        {
            a.close();
        }
        catch(Exception _ex) { }
        a = null;
        System.gc();
    }

    private static void E()
    {
        a.setColor(0, 0, 0);
        a.fillRect(0, 0, 352, 416);
    }

    public static void a(int i1, int j1)
    {
        a.drawLine(i1, j1, i1, j1);
    }

    public static void a(int i1, int j1, int k1)
    {
        a.setColor(255, 255, 0);
        a("" + i1, j1, k1);
    }

    private static void a(String s1, int i1, int j1)
    {
        a.drawString(s1, i1, j1, 0);
    }

    public static int b(int i1, int j1)
    {
        if(i1 == j1)
            return i1;
        int k1;
        if((k1 = a.nextInt()) < 0)
            k1 = -k1;
        return i1 + k1 % (j1 - i1);
    }

    public static void c(int i1)
    {
        if(!w.a)
        {
            return;
        } else
        {
            f.a(i1);
            return;
        }
    }

    private static void k(int i1)
    {
        if(!w.a || i)
        {
            return;
        } else
        {
            f.a(i1);
            return;
        }
    }

    public static void e()
    {
        f.a();
    }

    public static void d(int i1)
    {
        k = i1;
        w = 0;
        if(k != 16 && k != 17)
            a();
        if(k == 18)
        {
            if(K == 11)
                k(4);
            I = -1;
        }
    }

    public static void f()
    {
        h();
        d(16);
    }

    public static void g()
    {
        H();
        d(17);
    }

    public static void a(e e1, int i1, int j1, int k1, int l1, int i2, int j2, int k2, 
            int l2)
    {
        int i3 = b(0, 12);
        if(j2 < i2)
        {
            a.setColor((k2 >> 10 & 0x1f) << 3, (k2 >> 5 & 0x1f) << 3, (k2 & 0x1f) << 3);
            a.drawLine((i1 >> 6) - e1.a, (j1 >> 6) - e1.b, (k1 >> 6) - e1.a, (l1 >> 6) - e1.b);
            a.setColor((l2 >> 10 & 0x1f) << 3, (l2 >> 5 & 0x1f) << 3, (l2 & 0x1f) << 3);
            if(k1 >= i1)
            {
                a.drawLine(((i1 >> 6) - e1.a) + 1, (j1 >> 6) - e1.b - 1, ((k1 >> 6) - e1.a) + 1, (l1 >> 6) - e1.b - 1);
                a.drawLine((i1 >> 6) - e1.a - 1, ((j1 >> 6) - e1.b) + 1, (k1 >> 6) - e1.a - 1, ((l1 >> 6) - e1.b) + 1);
                return;
            } else
            {
                a.drawLine(((i1 >> 6) - e1.a) + 1, ((j1 >> 6) - e1.b) + 1, ((k1 >> 6) - e1.a) + 1, ((l1 >> 6) - e1.b) + 1);
                a.drawLine((i1 >> 6) - e1.a - 1, (j1 >> 6) - e1.b - 1, (k1 >> 6) - e1.a - 1, (l1 >> 6) - e1.b - 1);
                return;
            }
        }
        int j3 = k1 + i1 >> 1;
        int k3 = l1 + j1 >> 1;
        j3 += (i3 - 6) * j2;
        i3 = b(0, 12);
        k3 += (i3 - 6) * j2;
        a(e1, i1, j1, j3, k3, i2, j2 >> 1, k2, l2);
        a(e1, k1, l1, j3, k3, i2, j2 >> 1, k2, l2);
        if(i3 > 12)
            a(e1, k1, l1, j3, k3, i2, j2 >> 1, k2, l2);
        if(i3 > 18)
            a(e1, k1, l1, j3, k3, i2, j2 >> 1, k2, l2);
    }

    private static void a(e e1, int i1, int j1, int k1, int l1, int i2, int j2, int k2)
    {
        int l2 = b(0, 12);
        if(j2 < i2)
        {
            a.setColor((k2 >> 10 & 0x1f) << 3, (k2 >> 5 & 0x1f) << 3, (k2 & 0x1f) << 3);
            a.drawLine((i1 >> 6) - e1.a, (j1 >> 6) - e1.b, (k1 >> 6) - e1.a, (l1 >> 6) - e1.b);
            return;
        } else
        {
            int i3 = k1 + i1 >> 1;
            int j3 = l1 + j1 >> 1;
            i3 += (l2 - 6) * j2;
            l2 = b(0, 12);
            j3 += (l2 - 6) * j2;
            a(e1, i1, j1, i3, j3, i2, j2 >> 1, k2);
            a(e1, k1, l1, i3, j3, i2, j2 >> 1, k2);
            return;
        }
    }

    public static void a(int i1, int j1, e e1, int k1, int l1)
    {
        int i2 = b(k1 >> 2, k1);
        int j2 = b(k1 >> 2, k1);
        a(e1, i1 - (i2 << 6), j1 - (j2 << 6), i1 + (i2 << 6), j1 + (j2 << 6), 16, 64, l1);
        a(e1, i1 - (i2 << 6), j1 + (j2 << 6), i1 + (i2 << 6), j1 - (j2 << 6), 16, 64, l1);
    }

    public static void b(int i1, int j1, e e1, int k1, int l1)
    {
        int i2 = b(k1 >> 2, k1);
        a(e1, i1 - (i2 << 6), j1, i1 + (i2 << 6), j1, 2, 48, l1);
        a(e1, i1, j1 + (i2 << 6), i1, j1 - (i2 << 6), 2, 48, l1);
    }

    public static String a(int i1)
    {
        return new String(d, c[i1], c[i1 + 1] - c[i1] - 1);
    }

    public static void a(int i1, String s1)
    {
        System.arraycopy(s1.getBytes(), 0, d, c[i1], c[i1 + 1] - c[i1] - 1);
    }

    private static void F()
    {
        if(y == 0)
            return;
        switch(y)
        {
        case 2: // '\002'
            if(z > 0)
            {
                z -= 10;
                return;
            } else
            {
                y = 3;
                return;
            }

        case 1: // '\001'
            if(z < 100)
            {
                z += 10;
                return;
            } else
            {
                y = 3;
                return;
            }

        case 3: // '\003'
            y = 0;
            break;
        }
    }

    private static void G()
    {
        int i1 = (416 * z) / 200;
        a.setColor(0);
        a.fillRect(0, 0, 352, i1);
        a.fillRect(0, 416 - i1, 352, i1);
    }

    private static void H()
    {
        y = 2;
        z = 99;
    }

    private static void l(int i1)
    {
        y = 1;
        z = i1;
    }

    public static void h()
    {
        l(1);
    }

    private static boolean g()
    {
        return y == 3;
    }

    private static void I()
    {
        y = 0;
    }

    private static void J()
    {
        a((byte)0, 0);
        if(a(32))
        {
            d(24);
            return;
        }
        if(f())

⌨️ 快捷键说明

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