/* Class136_Sub1_Sub2 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import jaggl.OpenGL;

public class Class136_Sub1_Sub2 extends Class136_Sub1
{
    static int[] anIntArray11175 = new int[4];
    Class100_Sub2 aClass100_Sub2_11176;
    Class151_Sub3 aClass151_Sub3_11177;
    static int[] anIntArray11178 = new int[4];
    
    Class100_Sub2 method8508() {
	return ((Class136_Sub1_Sub2) this).aClass100_Sub2_11176;
    }
    
    int method10214() {
	return (((Class100_Sub2)
		 ((Class136_Sub1_Sub2) this).aClass100_Sub2_11176)
		.anInt8595);
    }
    
    Class100_Sub2 method8507() {
	return ((Class136_Sub1_Sub2) this).aClass100_Sub2_11176;
    }
    
    boolean method10215(Class100_Sub2 class100_sub2,
			Class100_Sub2 class100_sub2_0_, float f) {
	boolean bool = true;
	Class144_Sub2_Sub1 class144_sub2_sub1
	    = (((Class151_Sub3)
		((Class136_Sub1_Sub2) this).aClass151_Sub3_11177)
	       .aClass144_Sub2_Sub1_9389);
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177
	    .method2040(anIntArray11175);
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177.method2036();
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177
	    .method2193(anIntArray11178);
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177.method8566();
	OpenGL.glMatrixMode(5889);
	OpenGL.glLoadIdentity();
	OpenGL.glOrtho(0.0, 1.0, 0.0, 1.0, -1.0, 1.0);
	OpenGL.glMatrixMode(5888);
	OpenGL.glLoadIdentity();
	OpenGL.glViewport(0, 0,
			  ((Class100_Sub2) (((Class136_Sub1_Sub2) this)
					    .aClass100_Sub2_11176)).anInt8595,
			  ((Class100_Sub2) (((Class136_Sub1_Sub2) this)
					    .aClass100_Sub2_11176)).anInt8595);
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177.method8600(false);
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177.method8555(false);
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177.method8603(false);
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177.method8604(false);
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177.method8588(-2);
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177.method8590(1);
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177.method8617(0.0F, 0.0F,
								    0.0F, f);
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177.method8594(34165,
								    34165);
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177
	    .method8591(class100_sub2_0_);
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177.method8590(0);
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177.method8592(1);
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177
	    .method8591(class100_sub2);
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177
	    .method2014(class144_sub2_sub1, (byte) 41);
	for (int i = 0; i < 6; i++) {
	    int i_1_ = 34069 + i;
	    class144_sub2_sub1.method8672(0, ((Class136_Sub1_Sub2) this)
						 .aClass100_Sub2_11176
						 .method8096(i_1_, 0));
	    class144_sub2_sub1.method10152(0);
	    if (class144_sub2_sub1.method8673()) {
		OpenGL.glBegin(7);
		switch (i_1_) {
		case 34069:
		    OpenGL.glTexCoord3i(65535, 65534, 65534);
		    OpenGL.glMultiTexCoord3i(33985, 65535, 65534, 65534);
		    OpenGL.glVertex2f(0.0F, 0.0F);
		    OpenGL.glTexCoord3i(65535, 65534, -65534);
		    OpenGL.glMultiTexCoord3i(33985, 65535, 65534, -65534);
		    OpenGL.glVertex2f(1.0F, 0.0F);
		    OpenGL.glTexCoord3i(65535, -65534, -65534);
		    OpenGL.glMultiTexCoord3i(33985, 65535, -65534, -65534);
		    OpenGL.glVertex2f(1.0F, 1.0F);
		    OpenGL.glTexCoord3i(65535, -65534, 65534);
		    OpenGL.glMultiTexCoord3i(33985, 65535, -65534, 65534);
		    OpenGL.glVertex2f(0.0F, 1.0F);
		    break;
		case 34073:
		    OpenGL.glTexCoord3i(-65534, 65534, 65535);
		    OpenGL.glMultiTexCoord3i(33985, -65534, 65534, 65535);
		    OpenGL.glVertex2f(0.0F, 0.0F);
		    OpenGL.glTexCoord3i(65534, 65534, 65535);
		    OpenGL.glMultiTexCoord3i(33985, 65534, 65534, 65535);
		    OpenGL.glVertex2f(1.0F, 0.0F);
		    OpenGL.glTexCoord3i(65534, -65534, 65535);
		    OpenGL.glMultiTexCoord3i(33985, 65534, -65534, 65535);
		    OpenGL.glVertex2f(1.0F, 1.0F);
		    OpenGL.glTexCoord3i(-65534, -65534, 65535);
		    OpenGL.glMultiTexCoord3i(33985, -65534, -65534, 65535);
		    OpenGL.glVertex2f(0.0F, 1.0F);
		    break;
		case 34072:
		    OpenGL.glTexCoord3i(-65534, -65535, 65534);
		    OpenGL.glMultiTexCoord3i(33985, -65534, -65535, 65534);
		    OpenGL.glVertex2f(0.0F, 0.0F);
		    OpenGL.glTexCoord3i(65534, -65535, 65534);
		    OpenGL.glMultiTexCoord3i(33985, 65534, -65535, 65534);
		    OpenGL.glVertex2f(1.0F, 0.0F);
		    OpenGL.glTexCoord3i(65534, -65535, -65534);
		    OpenGL.glMultiTexCoord3i(33985, 65534, -65535, -65534);
		    OpenGL.glVertex2f(1.0F, 1.0F);
		    OpenGL.glTexCoord3i(-65534, -65535, -65534);
		    OpenGL.glMultiTexCoord3i(33985, -65534, -65535, -65534);
		    OpenGL.glVertex2f(0.0F, 1.0F);
		    break;
		case 34070:
		    OpenGL.glTexCoord3i(-65535, 65534, -65534);
		    OpenGL.glMultiTexCoord3i(33985, -65535, 65534, -65534);
		    OpenGL.glVertex2f(0.0F, 0.0F);
		    OpenGL.glTexCoord3i(-65535, 65534, 65534);
		    OpenGL.glMultiTexCoord3i(33985, -65535, 65534, 65534);
		    OpenGL.glVertex2f(1.0F, 0.0F);
		    OpenGL.glTexCoord3i(-65535, -65534, 65534);
		    OpenGL.glMultiTexCoord3i(33985, -65535, -65534, 65534);
		    OpenGL.glVertex2f(1.0F, 1.0F);
		    OpenGL.glTexCoord3i(-65535, -65534, -65534);
		    OpenGL.glMultiTexCoord3i(33985, -65535, -65534, -65534);
		    OpenGL.glVertex2f(0.0F, 1.0F);
		    break;
		case 34074:
		    OpenGL.glTexCoord3i(65534, 65534, -65535);
		    OpenGL.glMultiTexCoord3i(33985, 65534, 65534, -65535);
		    OpenGL.glVertex2f(0.0F, 0.0F);
		    OpenGL.glTexCoord3i(-65534, 65534, -65535);
		    OpenGL.glMultiTexCoord3i(33985, -65534, 65534, -65535);
		    OpenGL.glVertex2f(1.0F, 0.0F);
		    OpenGL.glTexCoord3i(-65534, -65534, -65535);
		    OpenGL.glMultiTexCoord3i(33985, -65534, -65534, -65535);
		    OpenGL.glVertex2f(1.0F, 1.0F);
		    OpenGL.glTexCoord3i(65534, -65534, -65535);
		    OpenGL.glMultiTexCoord3i(33985, 65534, -65534, -65535);
		    OpenGL.glVertex2f(0.0F, 1.0F);
		    break;
		case 34071:
		    OpenGL.glTexCoord3i(-65534, 65535, -65534);
		    OpenGL.glMultiTexCoord3i(33985, -65534, 65535, -65534);
		    OpenGL.glVertex2f(0.0F, 0.0F);
		    OpenGL.glTexCoord3i(65534, 65535, -65534);
		    OpenGL.glMultiTexCoord3i(33985, 65534, 65535, -65534);
		    OpenGL.glVertex2f(1.0F, 0.0F);
		    OpenGL.glTexCoord3i(65534, 65535, 65534);
		    OpenGL.glMultiTexCoord3i(33985, 65534, 65535, 65534);
		    OpenGL.glVertex2f(1.0F, 1.0F);
		    OpenGL.glTexCoord3i(-65534, 65535, 65534);
		    OpenGL.glMultiTexCoord3i(33985, -65534, 65535, 65534);
		    OpenGL.glVertex2f(0.0F, 1.0F);
		    break;
		}
		OpenGL.glEnd();
	    } else {
		bool = false;
		break;
	    }
	}
	class144_sub2_sub1.method8672(0, null);
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177
	    .method2015(class144_sub2_sub1, -1575316526);
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177.method8590(1);
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177.method8591(null);
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177.method8594(8448,
								    8448);
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177.method8590(0);
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177.method8591(null);
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177.method2381
	    (anIntArray11175[0], anIntArray11175[1], anIntArray11175[2],
	     anIntArray11175[3]);
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177.method2034
	    (anIntArray11178[0], anIntArray11178[1], anIntArray11178[2],
	     anIntArray11178[3]);
	if (bool && !((Class151_Sub3) (((Class136_Sub1_Sub2) this)
				       .aClass151_Sub3_11177)).aBool9396)
	    ((Class136_Sub1_Sub2) this).aClass100_Sub2_11176.method1377();
	return bool;
    }
    
    Class136_Sub1_Sub2(Class151_Sub3 class151_sub3, int i) {
	((Class136_Sub1_Sub2) this).aClass151_Sub3_11177 = class151_sub3;
	((Class136_Sub1_Sub2) this).aClass100_Sub2_11176
	    = new Class100_Sub2(class151_sub3, Class116.aClass116_1448,
				Class155.aClass155_1894, i);
    }
    
    int method10216() {
	return (((Class100_Sub2)
		 ((Class136_Sub1_Sub2) this).aClass100_Sub2_11176)
		.anInt8595);
    }
}
