/* Class277 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.awt.Frame;

public class Class277
{
    public int anInt3224;
    public int anInt3225;
    public int anInt3226;
    public static Class462 aClass462_3227;
    
    public static void method3799(Class641 class641, Frame frame, int i) {
	class641.method7635(-1324751840);
	frame.setVisible(false);
	frame.dispose();
    }
    
    public static final void method3800(int i) {
	if (!client.aBool10864) {
	    client.aFloat10790 += (24.0F - client.aFloat10790) / 2.0F;
	    client.aBool10737 = true;
	    client.aBool10864 = true;
	}
    }
    
    static final void method3801(Class211 class211, Class612 class612,
				 byte i) {
	int i_0_
	    = (((Class612) class612).anIntArray8021
	       [(((Class612) class612).anInt8022 -= 201091009) * -40654783]);
	int i_1_
	    = ((((Class612) class612).anIntArray8021
		[(((Class612) class612).anInt8022 -= 201091009) * -40654783])
	       - 1);
	int i_2_ = i_1_;
	if (class211.anInt2286 * 1731723461 != 6
	    && class211.anInt2286 * 1731723461 != 2)
	    throw new RuntimeException("");
	Class257 class257
	    = ((Class257)
	       Class282.aClass662_Sub6_3263
		   .method31(1360801803 * class211.anInt2401, 251091897));
	if (class211.aClass271_2425 == null)
	    class211.aClass271_2425
		= new Class271(class257, 6 == 1731723461 * class211.anInt2286);
	class211.aClass271_2425.aLong3165
	    = Class290.method3975((byte) -97) * 3202116999784416643L;
	if (null != class257.aByteArray2987) {
	    if (i_1_ < 0 || i_1_ >= class257.aByteArray2987.length)
		throw new RuntimeException("");
	    i_2_ = class257.aByteArray2987[i_1_];
	}
	if (null == class257.aShortArray3015 || i_2_ < 0
	    || i_2_ >= class257.aShortArray3015.length)
	    throw new RuntimeException("");
	class211.aClass271_2425.aShortArray3167[i_2_] = (short) i_0_;
	Class67_Sub1_Sub2.method10127(class211, (short) 492);
    }
    
    static final void method3802(Class612 class612, int i) {
	Class260.method3647(Class577.method7047(-1732195254), class612,
			    1660309982);
    }
    
    public static int method3803(int i, int i_3_, int i_4_, byte i_5_) {
	if (Class497_Sub1.anInt10446 * 1848066855 < 100)
	    return -2;
	int i_6_ = -2;
	int i_7_ = 2147483647;
	int i_8_ = i_3_ - Class497_Sub1.anInt6808;
	int i_9_ = i_4_ - Class497_Sub1.anInt6767;
	for (Class487_Sub34 class487_sub34
		 = ((Class487_Sub34)
		    Class497_Sub1.aClass656_6788.method7795((short) 4060));
	     class487_sub34 != null;
	     class487_sub34 = (Class487_Sub34) Class497_Sub1.aClass656_6788
						   .method7798((byte) -53)) {
	    if (923654319 * class487_sub34.anInt10313 == i) {
		int i_10_ = 311188537 * class487_sub34.anInt10315;
		int i_11_ = -1553732535 * class487_sub34.anInt10314;
		int i_12_ = (Class497_Sub1.anInt6808 + i_10_ << 14
			     | Class497_Sub1.anInt6767 + i_11_);
		int i_13_ = ((i_8_ - i_10_) * (i_8_ - i_10_)
			     + (i_9_ - i_11_) * (i_9_ - i_11_));
		if (i_6_ < 0 || i_13_ < i_7_) {
		    i_6_ = i_12_;
		    i_7_ = i_13_;
		}
	    }
	}
	return i_6_;
    }
}
