/* Class288 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.ArrayList;

public class Class288 implements Runnable
{
    Class283[] aClass283Array3294;
    Thread aThread3295;
    volatile boolean aBool3296;
    public static long aLong3297;
    public static int anInt3298;
    
    public void method3919() {
	try {
	    int i = (Class2.aClass607_18 == Class607.aClass607_7988 ? 80
		     : -12846323 * Class656.aClass677_8313.anInt8546 + 7000);
	    BufferedReader bufferedreader
		= (new BufferedReader
		   (new InputStreamReader
		    (new DataInputStream
		     (new URL
			  (new StringBuilder().append("http://").append
			       (Class656.aClass677_8313.aString8548).append
			       (":").append
			       (i).append
			       ("/news.ws?game=").append
			       (client.aClass616_10944.anInt8061 * -550266565)
			       .toString())
			  .openStream()))));
	    String string = bufferedreader.readLine();
	    ArrayList arraylist = new ArrayList();
	    for (/**/; string != null; string = bufferedreader.readLine())
		arraylist.add(string);
	    String[] strings = new String[arraylist.size()];
	    arraylist.toArray(strings);
	    if (0 != strings.length % 3)
		return;
	    ((Class288) this).aClass283Array3294
		= new Class283[strings.length / 3];
	    for (int i_0_ = 0; i_0_ < strings.length; i_0_ += 3)
		((Class288) this).aClass283Array3294[i_0_ / 3]
		    = new Class283(strings[i_0_], strings[1 + i_0_],
				   strings[2 + i_0_]);
	} catch (IOException ioexception) {
	    /* empty */
	}
	((Class288) this).aBool3296 = true;
    }
    
    Class283 method3920(int i, byte i_1_) {
	if (null == ((Class288) this).aClass283Array3294 || i < 0
	    || i >= ((Class288) this).aClass283Array3294.length)
	    return null;
	return ((Class288) this).aClass283Array3294[i];
    }
    
    boolean method3921() {
	if (((Class288) this).aBool3296)
	    return true;
	if (null == ((Class288) this).aThread3295) {
	    ((Class288) this).aThread3295 = new Thread(this);
	    ((Class288) this).aThread3295.start();
	}
	return ((Class288) this).aBool3296;
    }
    
    Class288() {
	/* empty */
    }
    
    public void method3922() {
	try {
	    int i = (Class2.aClass607_18 == Class607.aClass607_7988 ? 80
		     : -12846323 * Class656.aClass677_8313.anInt8546 + 7000);
	    BufferedReader bufferedreader
		= (new BufferedReader
		   (new InputStreamReader
		    (new DataInputStream
		     (new URL
			  (new StringBuilder().append("http://").append
			       (Class656.aClass677_8313.aString8548).append
			       (":").append
			       (i).append
			       ("/news.ws?game=").append
			       (client.aClass616_10944.anInt8061 * -550266565)
			       .toString())
			  .openStream()))));
	    String string = bufferedreader.readLine();
	    ArrayList arraylist = new ArrayList();
	    for (/**/; string != null; string = bufferedreader.readLine())
		arraylist.add(string);
	    String[] strings = new String[arraylist.size()];
	    arraylist.toArray(strings);
	    if (0 != strings.length % 3)
		return;
	    ((Class288) this).aClass283Array3294
		= new Class283[strings.length / 3];
	    for (int i_2_ = 0; i_2_ < strings.length; i_2_ += 3)
		((Class288) this).aClass283Array3294[i_2_ / 3]
		    = new Class283(strings[i_2_], strings[1 + i_2_],
				   strings[2 + i_2_]);
	} catch (IOException ioexception) {
	    /* empty */
	}
	((Class288) this).aBool3296 = true;
    }
    
    boolean method3923(byte i) {
	if (((Class288) this).aBool3296)
	    return true;
	if (null == ((Class288) this).aThread3295) {
	    ((Class288) this).aThread3295 = new Thread(this);
	    ((Class288) this).aThread3295.start();
	}
	return ((Class288) this).aBool3296;
    }
    
    public void run() {
	try {
	    int i = (Class2.aClass607_18 == Class607.aClass607_7988 ? 80
		     : -12846323 * Class656.aClass677_8313.anInt8546 + 7000);
	    BufferedReader bufferedreader
		= (new BufferedReader
		   (new InputStreamReader
		    (new DataInputStream
		     (new URL
			  (new StringBuilder().append("http://").append
			       (Class656.aClass677_8313.aString8548).append
			       (":").append
			       (i).append
			       ("/news.ws?game=").append
			       (client.aClass616_10944.anInt8061 * -550266565)
			       .toString())
			  .openStream()))));
	    String string = bufferedreader.readLine();
	    ArrayList arraylist = new ArrayList();
	    for (/**/; string != null; string = bufferedreader.readLine())
		arraylist.add(string);
	    String[] strings = new String[arraylist.size()];
	    arraylist.toArray(strings);
	    if (0 != strings.length % 3)
		return;
	    ((Class288) this).aClass283Array3294
		= new Class283[strings.length / 3];
	    for (int i_3_ = 0; i_3_ < strings.length; i_3_ += 3)
		((Class288) this).aClass283Array3294[i_3_ / 3]
		    = new Class283(strings[i_3_], strings[1 + i_3_],
				   strings[2 + i_3_]);
	} catch (IOException ioexception) {
	    /* empty */
	}
	((Class288) this).aBool3296 = true;
    }
    
    boolean method3924() {
	if (((Class288) this).aBool3296)
	    return true;
	if (null == ((Class288) this).aThread3295) {
	    ((Class288) this).aThread3295 = new Thread(this);
	    ((Class288) this).aThread3295.start();
	}
	return ((Class288) this).aBool3296;
    }
    
    boolean method3925() {
	if (((Class288) this).aBool3296)
	    return true;
	if (null == ((Class288) this).aThread3295) {
	    ((Class288) this).aThread3295 = new Thread(this);
	    ((Class288) this).aThread3295.start();
	}
	return ((Class288) this).aBool3296;
    }
    
    static final void method3926(Class612 class612, byte i) {
	int i_4_
	    = (((Class612) class612).anIntArray8021
	       [(((Class612) class612).anInt8022 -= 201091009) * -40654783]);
	Class211 class211 = Class156.method2513(i_4_, (short) -21190);
	Class588.method7165(class211, class612, 743460188);
    }
    
    static void method3927(Class151 class151, int i) {
	if ((Class54.aClass590_Sub1_Sub5_Sub1_Sub2_626.aByte10415
	     != Class70.anInt981 * 473442001)
	    && client.aClass452_10749.method5545((byte) 0) != null) {
	    Class222.method3225(2000972041);
	    if (Class508.method6288(class151,
				    (Class54.aClass590_Sub1_Sub5_Sub1_Sub2_626
				     .aByte10415),
				    (byte) 53))
		Class70.anInt981
		    = (-1923091919
		       * Class54.aClass590_Sub1_Sub5_Sub1_Sub2_626.aByte10415);
	}
    }
    
    static Class633[] method3928(int i) {
	return (new Class633[]
		{ Class633.aClass633_8134, Class633.aClass633_8133,
		  Class633.aClass633_8132 });
    }
    
    static final void method3929(Class612 class612, int i) {
	Class295.method4006((((Class612) class612).anIntArray8021
			     [((((Class612) class612).anInt8022 -= 201091009)
			       * -40654783)]),
			    (byte) 52);
    }
}
