package client;

import slimpleslickgame.Game;

public class InitThread extends Thread {
	private GameStatsEvents gameStatsMonitor;
	private ByteMonitor byteMonitor;
	private ParseBytes parseBytes;
	private Game game;
	private String ipport;
	
	public InitThread(String ipport, Game game){
		this.ipport = ipport;
		this.game = game;
	}
	
	public void run(){
		byteMonitor = new ByteMonitor(ipport);
		byteMonitor.initConnection();
		gameStatsMonitor = new GameStatsEvents(game);
		parseBytes = new ParseBytes(gameStatsMonitor, byteMonitor);
		game.addGSM(gameStatsMonitor, byteMonitor);
		parseBytes.start();
	}
}

@@ -397,40 +397,8 @@
 t);%0A
-%09%09byteMonitor.initConnection();%0A
 %09%09ga
@@ -571,13 +571,45 @@
 tart();%0A
+%09%09byteMonitor.initConnection();%0A
 %09%7D%0A%7D%0A

move initconnection