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

import java.io.PrintStream;
import sign.signlink;

public class Class3
{

    public static void method157(Class11 class11, int i)
    {
        Class31_Sub3_Sub2 class31_sub3_sub2 = new Class31_Sub3_Sub2((byte)114, class11.method204("spotanim.dat", null));
        anInt72 = class31_sub3_sub2.method424();
        if(i < 5 || i > 5)
            return;
        if(aClass3Array73 == null)
            aClass3Array73 = new Class3[anInt72];
        for(int j = 0; j < anInt72; j++)
        {
            if(aClass3Array73[j] == null)
                aClass3Array73[j] = new Class3();
            aClass3Array73[j].anInt74 = j;
            aClass3Array73[j].method158(class31_sub3_sub2, (byte)59);
        }

    }

    public void method158(Class31_Sub3_Sub2 class31_sub3_sub2, byte byte0)
    {
        if(byte0 != 59)
            throw new NullPointerException();
        do
        {
            int i = class31_sub3_sub2.method422();
            if(i == 0)
                return;
            if(i == 1)
                anInt75 = class31_sub3_sub2.method424();
            else
            if(i == 2)
            {
                anInt76 = class31_sub3_sub2.method424();
                if(Class8.aClass8Array140 != null)
                    aClass8_77 = Class8.aClass8Array140[anInt76];
            } else
            if(i == 4)
                anInt80 = class31_sub3_sub2.method424();
            else
            if(i == 5)
                anInt81 = class31_sub3_sub2.method424();
            else
            if(i == 6)
                anInt82 = class31_sub3_sub2.method424();
            else
            if(i == 7)
                anInt83 = class31_sub3_sub2.method422();
            else
            if(i == 8)
                anInt84 = class31_sub3_sub2.method422();
            else
            if(i >= 40 && i < 50)
                anIntArray78[i - 40] = class31_sub3_sub2.method424();
            else
            if(i >= 50 && i < 60)
                anIntArray79[i - 50] = class31_sub3_sub2.method424();
            else
                System.out.println("Error unrecognised spotanim config code: " + i);
        } while(true);
    }

    public Class31_Sub3_Sub3_Sub2 method159()
    {
        Class31_Sub3_Sub3_Sub2 class31_sub3_sub3_sub2 = (Class31_Sub3_Sub3_Sub2)aClass36_85.method565(anInt74);
        if(class31_sub3_sub3_sub2 != null)
            return class31_sub3_sub3_sub2;
        class31_sub3_sub3_sub2 = Class31_Sub3_Sub3_Sub2.method467(anInt75);
        if(class31_sub3_sub3_sub2 == null)
            return null;
        for(int i = 0; i < 6; i++)
            if(anIntArray78[0] != 0)
                class31_sub3_sub3_sub2.method481(anIntArray78[i], anIntArray79[i]);

        aClass36_85.method566(anInt74, true, class31_sub3_sub3_sub2);
        return class31_sub3_sub3_sub2;
    }

    public Class3()
    {
        anInt76 = -1;
        anIntArray78 = new int[6];
        anIntArray79 = new int[6];
        anInt80 = 128;
        anInt81 = 128;
    }

    public static int anInt72;
    public static Class3 aClass3Array73[];
    public int anInt74;
    public int anInt75;
    public int anInt76;
    public Class8 aClass8_77;
    public int anIntArray78[];
    public int anIntArray79[];
    public int anInt80;
    public int anInt81;
    public int anInt82;
    public int anInt83;
    public int anInt84;
    public static Class36 aClass36_85 = new Class36(30, false);

}
