// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

import sign.signlink;

public class Class31_Sub3_Sub3_Sub5 extends Class31_Sub3_Sub3
{

    public void method503(int i, int j, int k, boolean flag, int l)
    {
        if(!aBoolean1685)
        {
            double d = j - anInt1690;
            double d2 = i - anInt1691;
            double d3 = Math.sqrt(d * d + d2 * d2);
            aDouble1682 = (double)anInt1690 + (d * (double)anInt1703) / d3;
            aDouble1683 = (double)anInt1691 + (d2 * (double)anInt1703) / d3;
            aDouble1684 = anInt1692;
        }
        double d1 = (anInt1701 + 1) - l;
        aDouble1686 = ((double)j - aDouble1682) / d1;
        aDouble1687 = ((double)i - aDouble1683) / d1;
        if(flag)
            anInt1707 = -378;
        aDouble1688 = Math.sqrt(aDouble1686 * aDouble1686 + aDouble1687 * aDouble1687);
        if(!aBoolean1685)
            aDouble1689 = -aDouble1688 * Math.tan((double)anInt1702 * 0.02454369D);
        aDouble1694 = (2D * ((double)k - aDouble1684 - aDouble1689 * d1)) / (d1 * d1);
    }

    public Class31_Sub3_Sub3_Sub5(int i, int j, int k, int l, int i1, byte byte0, int j1, 
            int k1, int l1, int i2, int j2, int k2)
    {
        aBoolean1685 = false;
        aBoolean1697 = true;
        anInt1707 = -462;
        if(byte0 == 5)
            byte0 = 0;
        else
            throw new NullPointerException();
        aClass3_1698 = Class3.aClass3Array73[l];
        anInt1699 = i;
        anInt1690 = j;
        anInt1691 = k1;
        anInt1692 = j1;
        anInt1700 = i1;
        anInt1701 = l1;
        anInt1702 = i2;
        anInt1703 = k2;
        anInt1704 = j2;
        anInt1693 = k;
        aBoolean1685 = false;
    }

    public void method504(int i, int j)
    {
        aBoolean1685 = true;
        if(j != 0)
            return;
        aDouble1682 += aDouble1686 * (double)i;
        aDouble1683 += aDouble1687 * (double)i;
        aDouble1684 += aDouble1689 * (double)i + 0.5D * aDouble1694 * (double)i * (double)i;
        aDouble1689 += aDouble1694 * (double)i;
        anInt1695 = (int)(Math.atan2(aDouble1686, aDouble1687) * 325.94900000000001D) + 1024 & 0x7ff;
        anInt1696 = (int)(Math.atan2(aDouble1689, aDouble1688) * 325.94900000000001D) & 0x7ff;
        if(aClass3_1698.aClass8_77 != null)
            for(anInt1706 += i; anInt1706 > aClass3_1698.aClass8_77.method179(anInt1705, -26977);)
            {
                anInt1706 -= aClass3_1698.aClass8_77.method179(anInt1705, -26977) + 1;
                anInt1705++;
                if(anInt1705 >= aClass3_1698.aClass8_77.anInt141)
                    anInt1705 = 0;
            }

    }

    public Class31_Sub3_Sub3_Sub2 method461(byte byte0)
    {
        Class31_Sub3_Sub3_Sub2 class31_sub3_sub3_sub2 = aClass3_1698.method159();
        if(class31_sub3_sub3_sub2 == null)
            return null;
        int i = -1;
        if(aClass3_1698.aClass8_77 != null)
            i = aClass3_1698.aClass8_77.anIntArray142[anInt1705];
        Class31_Sub3_Sub3_Sub2 class31_sub3_sub3_sub2_1 = new Class31_Sub3_Sub3_Sub2(Class32.method509(i, true), class31_sub3_sub3_sub2, false, false, true);
        if(i != -1)
        {
            class31_sub3_sub3_sub2_1.method474(166);
            class31_sub3_sub3_sub2_1.method475(257, i);
            class31_sub3_sub3_sub2_1.anIntArrayArray1575 = null;
            class31_sub3_sub3_sub2_1.anIntArrayArray1574 = null;
        }
        if(aClass3_1698.anInt80 != 128 || aClass3_1698.anInt81 != 128)
            class31_sub3_sub3_sub2_1.method483(aClass3_1698.anInt80, -39776, aClass3_1698.anInt81, aClass3_1698.anInt80);
        class31_sub3_sub3_sub2_1.method479(anInt1696, 5419);
        if(byte0 != -99)
            aBoolean1697 = !aBoolean1697;
        class31_sub3_sub3_sub2_1.method484(64 + aClass3_1698.anInt83, 850 + aClass3_1698.anInt84, -30, -50, -30, true);
        return class31_sub3_sub3_sub2_1;
    }

    public double aDouble1682;
    public double aDouble1683;
    public double aDouble1684;
    public boolean aBoolean1685;
    public double aDouble1686;
    public double aDouble1687;
    public double aDouble1688;
    public double aDouble1689;
    public int anInt1690;
    public int anInt1691;
    public int anInt1692;
    public int anInt1693;
    public double aDouble1694;
    public int anInt1695;
    public int anInt1696;
    public boolean aBoolean1697;
    public Class3 aClass3_1698;
    public int anInt1699;
    public int anInt1700;
    public int anInt1701;
    public int anInt1702;
    public int anInt1703;
    public int anInt1704;
    public int anInt1705;
    public int anInt1706;
    public int anInt1707;
}
