/* Class168 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;

public abstract class Class168 implements Interface17
{
    public Class210 aClass210_2118 = Class210.aClass210_2487;
    public int anInt2119;
    public Class300 aClass300_2120;
    public Class296 aClass296_2121;
    public boolean aBool2122 = true;
    
    Class168(Class296 class296, int i) {
	aClass296_2121 = class296;
	anInt2119 = -1339428939 * i;
    }
    
    public void method3818(Class243_Sub10 class243_sub10, int i) {
	for (;;) {
	    int i_0_ = class243_sub10.method14878((byte) -17);
	    if (0 == i_0_)
		break;
	    Class166 class166
		= ((Class166)
		   Class341.method6430(Class454.method8033(272015991), i_0_,
				       (short) 25899));
	    if (null != class166) {
		switch (((Class166) class166).anInt2112 * -2008618397) {
		case 1:
		    aBool2122 = false;
		    break;
		case 4: {
		    int i_1_ = class243_sub10.method14878((byte) -74);
		    aClass300_2120
			= ((Class300)
			   Class341.method6430(Class300.method5958(1114524839),
					       i_1_, (short) -8207));
		    if (aClass300_2120 == null)
			throw new IllegalStateException("");
		    break;
		}
		case 5:
		    Class341.method6430(Class361.method6926(-1004611344),
					class243_sub10.method14878((byte) 6),
					(short) 15927);
		    break;
		case 6:
		    aClass210_2118
			= ((Class210)
			   Class341.method6430(Class234.method4817(770959375),
					       class243_sub10
						   .method14878((byte) 81),
					       (short) 10931));
		    break;
		default:
		    throw new IllegalStateException("");
		case 2:
		    break;
		case 3:
		    class243_sub10.method14682(-437499001);
		}
	    } else
		method3819(class243_sub10, i_0_, -1991465321);
	}
    }
    
    abstract void method3819(Class243_Sub10 class243_sub10, int i, int i_2_);
    
    boolean method3820(int i) {
	if (null == aClass296_2121 || null == aClass300_2120)
	    return false;
	return true;
    }
    
    public Object method3821(byte i) {
	return aClass296_2121.method5930(this, -802647765);
    }
    
    abstract void method3822(Class243_Sub10 class243_sub10, int i);
    
    static void method3823(byte i) {
	try {
	    File file = new File(Class115.aString1341, "random.dat");
	    if (file.exists())
		Class590.aClass418_7671
		    = new Class418(new Class414(file, "rw", 25L), 24, 0);
	    else {
	    while_104_:
		for (int i_3_ = 0; i_3_ < Class471.aStringArray6385.length;
		     i_3_++) {
		    for (int i_4_ = 0; i_4_ < Class335.aStringArray5285.length;
			 i_4_++) {
			File file_5_
			    = new File(new StringBuilder().append
					   (Class335.aStringArray5285[i_4_])
					   .append
					   (Class471.aStringArray6385[i_3_])
					   .append
					   (File.separatorChar).append
					   ("random.dat").toString());
			if (file_5_.exists()) {
			    Class590.aClass418_7671
				= new Class418(new Class414(file_5_, "rw",
							    25L),
					       24, 0);
			    break while_104_;
			}
		    }
		}
	    }
	    if (Class590.aClass418_7671 == null) {
		RandomAccessFile randomaccessfile
		    = new RandomAccessFile(file, "rw");
		int i_6_ = randomaccessfile.read();
		randomaccessfile.seek(0L);
		randomaccessfile.write(i_6_);
		randomaccessfile.seek(0L);
		randomaccessfile.close();
		Class590.aClass418_7671
		    = new Class418(new Class414(file, "rw", 25L), 24, 0);
	    }
	} catch (IOException ioexception) {
	    /* empty */
	}
    }
    
    static final void method3824(Class479 class479, byte i)
	throws Exception_Sub3 {
	((Class479) class479).anInt6442 -= 1977707898;
	int i_7_ = (((Class479) class479).anIntArray6435
		    [-117934955 * ((Class479) class479).anInt6442]);
	int i_8_ = (((Class479) class479).anIntArray6435
		    [-117934955 * ((Class479) class479).anInt6442 + 1]);
	Class238.aClass67_Sub1_3891.method1569((float) i_7_, (float) i_8_,
					       (byte) 43);
    }
}
