import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;

public class Class174 {

   int anInt2084;
   Class545_Sub3 aClass545_Sub3_2085;
   static final float aFloat2086 = 255.0F;
   Class568_Sub2[] aClass568_Sub2Array2087;
   float aFloat2088 = 0.85F;
   float aFloat2089;
   int anInt2090;
   float aFloat2091;
   boolean aBool2092;
   int anInt2093;
   int anInt2094;
   float aFloat2095;
   Class317 aClass317_2096;
   Class328 aClass328_2097;
   Class143 aClass143_2098;
   float aFloat2099;
   Class317 aClass317_2100;
   Class317 aClass317_2101;
   int[] anIntArray2102;
   float[] aFloatArray2103;
   float[] aFloatArray2104;
   float[] aFloatArray2105;
   float[] aFloatArray2106;
   int[] anIntArray2107;
   boolean aBool2108;
   int[] anIntArray2109;
   int[] anIntArray2110;
   Class328 aClass328_2111;
   int[] anIntArray2112;
   float[] aFloatArray2113;
   float aFloat2114;
   float aFloat2115;
   float aFloat2116;
   int anInt2117;
   int[] anIntArray2118;
   float aFloat2119;
   float[] aFloatArray2120;
   float[] aFloatArray2121;
   float[] aFloatArray2122;
   Class568_Sub2[] aClass568_Sub2Array2123;
   float[] aFloatArray2124;
   float[] aFloatArray2125;
   boolean aBool2126;
   float[] aFloatArray2127;
   int[] anIntArray2128;
   Runnable aRunnable2129;


   void method3048(byte var1) {
      this.aClass143_2098 = new Class143(this.aClass545_Sub3_2085, this);
   }

   void method3049(Runnable var1) {
      this.aRunnable2129 = var1;
   }

   void method3050(Runnable var1, int var2) {
      this.aRunnable2129 = var1;
   }

   void method3051() {
      this.aClass143_2098 = new Class143(this.aClass545_Sub3_2085, this);
   }

   Class174(Class545_Sub3 var1) {
      this.aFloat2091 = 1.0F - this.aFloat2088;
      this.anInt2090 = 0;
      this.anInt2117 = 0;
      this.aBool2092 = false;
      this.anInt2093 = 0;
      this.anInt2094 = 0;
      this.aBool2126 = true;
      this.aClass317_2096 = new Class317();
      this.aClass328_2097 = new Class328();
      this.aClass328_2111 = new Class328();
      this.aClass317_2100 = new Class317();
      this.aClass317_2101 = new Class317();
      this.anIntArray2102 = new int[Class568_Sub2.anInt9323];
      this.aFloatArray2103 = new float[Class568_Sub2.anInt9323];
      this.aFloatArray2104 = new float[Class568_Sub2.anInt9323];
      this.aFloatArray2105 = new float[Class568_Sub2.anInt9323];
      this.aFloatArray2106 = new float[Class568_Sub2.anInt9323];
      this.anIntArray2107 = new int[8];
      this.anIntArray2118 = new int[8];
      this.anIntArray2109 = new int[8];
      this.anIntArray2110 = new int[10000];
      this.anIntArray2128 = new int[10000];
      this.aFloat2089 = 1.0F;
      this.aFloat2099 = 0.0F;
      this.aFloat2119 = 1.0F;
      this.aFloatArray2120 = new float[2];
      this.aClass568_Sub2Array2087 = new Class568_Sub2[7];
      this.aClass568_Sub2Array2123 = new Class568_Sub2[7];
      this.aFloatArray2113 = new float[64];
      this.aFloatArray2125 = new float[64];
      this.aFloatArray2121 = new float[64];
      this.aFloatArray2127 = new float[64];
      this.aFloatArray2124 = new float[64];
      this.aFloatArray2122 = new float[3];
      this.aClass545_Sub3_2085 = var1;
      this.aClass143_2098 = new Class143(var1, this);

      int var2;
      for(var2 = 0; var2 < 7; ++var2) {
         this.aClass568_Sub2Array2087[var2] = new Class568_Sub2(this.aClass545_Sub3_2085);
         this.aClass568_Sub2Array2123[var2] = new Class568_Sub2(this.aClass545_Sub3_2085);
      }

      this.anIntArray2112 = new int[Class568_Sub2.anInt9317];

      for(var2 = 0; var2 < Class568_Sub2.anInt9317; ++var2) {
         this.anIntArray2112[var2] = -1;
      }

   }

   void method3052(Runnable var1) {
      this.aRunnable2129 = var1;
   }

   static void method3053(int var0) {
      try {
         File var1 = new File(Class466.aString5747, "random.dat");
         int var3;
         if(var1.exists()) {
            GameEngine.aClass452_3316 = new Class452(new Class431(var1, "rw", 25L), 24, 0);
         } else {
            label30:
            for(int var2 = 0; var2 < Class252.aStringArray2985.length; ++var2) {
               for(var3 = 0; var3 < Class225_Sub14_Sub8.aStringArray10506.length; ++var3) {
                  File var4 = new File(Class225_Sub14_Sub8.aStringArray10506[var3] + Class252.aStringArray2985[var2] + File.separatorChar + "random.dat");
                  if(var4.exists()) {
                     GameEngine.aClass452_3316 = new Class452(new Class431(var4, "rw", 25L), 24, 0);
                     break label30;
                  }
               }
            }
         }

         if(null == GameEngine.aClass452_3316) {
            RandomAccessFile var6 = new RandomAccessFile(var1, "rw");
            var3 = var6.read();
            var6.seek(0L);
            var6.write(var3);
            var6.seek(0L);
            var6.close();
            GameEngine.aClass452_3316 = new Class452(new Class431(var1, "rw", 25L), 24, 0);
         }
      } catch (IOException var5) {
         ;
      }

   }

   public static boolean method3054(String var0, int var1) {
      if(var0 == null) {
         return false;
      } else {
         for(int var2 = 0; var2 < client.anInt7651 * 1907362565; ++var2) {
            if(var0.equalsIgnoreCase(client.aClass13Array7931[var2].aString169)) {
               return true;
            }
         }

         if(var0.equalsIgnoreCase(Class5.aClass515_Sub1_Sub4_Sub4_Sub1_113.aString10856)) {
            return true;
         } else {
            return false;
         }
      }
   }

   static final void method3055(Class508 var0, int var1) {
      if(Class225_Sub21_Sub3.aClass234_10080.method4052(81, (short)160)) {
         var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = 1;
      } else {
         var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = 0;
      }

   }
}
