// Path: app/src/main/java/com/tos_bot/ConfigData.java
// public class ConfigData {
// 	public static String Serverurl;
// 	public static int eightd = 0;   	// 0 is no eight direction
// 	public static int deep = 30;		// max move
// 	public static int waitForStageChageTimeSec = 12;
// 	public static String DeviceName = "";
// 	public static Integer StyleName = R.id.Vary_color_Single;
// 	public static String TempDir = "";
// 	public static Thread solverThread = null;
// 	public static String maxCombo = "0";		//0 is no limit
// 	public static String gap = "70";			//the sleep time between two touch command
// 	public static int timeOut = 10;
// 	//For TouchEvent
// 	public static String touchEventNum;
// 	public static String posXId;
// 	public static String posYId;
// 	public static String posXMax;
// 	public static String posYMax;
// 	public static String trackingId;
// 	public static String pressureId;
// 	public static String trackingMax;
// 	public static String pressureMax;
// 	public static String oneBallMove;
// 	public static String startPosX;
// 	public static String startPosY;
// 	//For Image Setting
// 	public static int oneOrbWitdh=0;
// 	public static int boardStartX=0;
// 	public static int boardStartY=0;
// 	
// 	
// 	public static int MaxOrbType=7;
// 	public static LinkedHashMap<String, String> baseOrbHash = null;
// 	
// 	/**
// 	 * get config data from SharedPreferences
// 	 */
// 	static public void setConfig(SharedPreferences settings ){
// 		ConfigData.Serverurl = settings.getString("Serverurl", "http://tbserver.ap01.aws.af.cm/");
// 		ConfigData.deep = settings.getInt("deep", 30);
// 		ConfigData.maxCombo = settings.getString("maxCombo", "0");
// 		ConfigData.gap = settings.getString("gap","70");
// 		ConfigData.DeviceName =  settings.getString("DeviceName","Auto");
// 		ConfigData.touchEventNum = settings.getString("touchEventNum","");
// 		ConfigData.posXId = settings.getString("posXId","");
// 		ConfigData.posYId = settings.getString("posYId","");
// 		ConfigData.posXMax = settings.getString("posXMax","");
// 		ConfigData.posYMax = settings.getString("posYMax","");
// 		ConfigData.trackingId = settings.getString("trackingId","");
// 		ConfigData.pressureId = settings.getString("pressureId","");
// 		ConfigData.trackingMax = settings.getString("trackingMax","");
// 		ConfigData.pressureMax = settings.getString("pressureMax","");
// 		ConfigData.oneBallMove = settings.getString("oneBallMove","");
// 		ConfigData.startPosX = settings.getString("startPosX","");
// 		ConfigData.startPosY = settings.getString("startPosY","");
// 		
// 		//For Image
// 		ConfigData.oneOrbWitdh = settings.getInt("oneOrbWitdh", 0);
// 		ConfigData.boardStartX = settings.getInt("boardStartX", 0);
// 		ConfigData.boardStartY = settings.getInt("boardStartY", 0);
// 		
// 
// 	}
// 	
// }
// 
// Path: app/src/main/java/com/tos_bot/NotInTosException.java
// public class NotInTosException extends Exception {
// 
// 	/**
// 	 * 
// 	 */
// 	private static final long serialVersionUID = 1L;
// 
// }


import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import com.tos_bot.ConfigData;
import com.tos_bot.NotInTosException;
import android.graphics.Bitmap;
import android.graphics.Bitmap.CompressFormat;
import android.graphics.BitmapFactory;
import android.os.Build;
import android.util.Log;
package com.tos_bot.board;






public class BoardManager {
	static String _Path = "";

	private BoardManager() {

	}

	public static int[][] getBallArray() throws NotInTosException {
		IBoardProcesser bp = new TosBoardProcesser();
		return bp.getBoardOrbArrary();
	}
// Path: app/src/main/java/com/tos_bot/ConfigData.java
// public class ConfigData {
// 	public static String Serverurl;
// 	public static int eightd = 0;   	// 0 is no eight direction
// 	public static int deep = 30;		// max move
// 	public static int waitForStageChageTimeSec = 12;
// 	public static String DeviceName = "";
// 	public static Integer StyleName = R.id.Vary_color_Single;
// 	public static String TempDir = "";
// 	public static Thread solverThread = null;
// 	public static String maxCombo = "0";		//0 is no limit
// 	public static String gap = "70";			//the sleep time between two touch command
// 	public static int timeOut = 10;
// 	//For TouchEvent
// 	public static String touchEventNum;
// 	public static String posXId;
// 	public static String posYId;
// 	public static String posXMax;
// 	public static String posYMax;
// 	public static String trackingId;
// 	public static String pressureId;
// 	public static String trackingMax;
// 	public static String pressureMax;
// 	public static String oneBallMove;
// 	public static String startPosX;
// 	public static String startPosY;
// 	//For Image Setting
// 	public static int oneOrbWitdh=0;
// 	public static int boardStartX=0;
// 	public static int boardStartY=0;
// 	
// 	
// 	public static int MaxOrbType=7;
// 	public static LinkedHashMap<String, String> baseOrbHash = null;
// 	
// 	/**
// 	 * get config data from SharedPreferences
// 	 */
// 	static public void setConfig(SharedPreferences settings ){
// 		ConfigData.Serverurl = settings.getString("Serverurl", "http://tbserver.ap01.aws.af.cm/");
// 		ConfigData.deep = settings.getInt("deep", 30);
// 		ConfigData.maxCombo = settings.getString("maxCombo", "0");
// 		ConfigData.gap = settings.getString("gap","70");
// 		ConfigData.DeviceName =  settings.getString("DeviceName","Auto");
// 		ConfigData.touchEventNum = settings.getString("touchEventNum","");
// 		ConfigData.posXId = settings.getString("posXId","");
// 		ConfigData.posYId = settings.getString("posYId","");
// 		ConfigData.posXMax = settings.getString("posXMax","");
// 		ConfigData.posYMax = settings.getString("posYMax","");
// 		ConfigData.trackingId = settings.getString("trackingId","");
// 		ConfigData.pressureId = settings.getString("pressureId","");
// 		ConfigData.trackingMax = settings.getString("trackingMax","");
// 		ConfigData.pressureMax = settings.getString("pressureMax","");
// 		ConfigData.oneBallMove = settings.getString("oneBallMove","");
// 		ConfigData.startPosX = settings.getString("startPosX","");
// 		ConfigData.startPosY = settings.getString("startPosY","");
// 		
// 		//For Image
// 		ConfigData.oneOrbWitdh = settings.getInt("oneOrbWitdh", 0);
// 		ConfigData.boardStartX = settings.getInt("boardStartX", 0);
// 		ConfigData.boardStartY = settings.getInt("boardStartY", 0);
// 		
// 
// 	}
// 	
// }
// 
// Path: app/src/main/java/com/tos_bot/NotInTosException.java
// public class NotInTosException extends Exception {
// 
// 	/**
// 	 * 
// 	 */
// 	private static final long serialVersionUID = 1L;
// 
// }


// Path: app/src/main/java/com/tos_bot/board/BoardManager.java
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import com.tos_bot.ConfigData;
import com.tos_bot.NotInTosException;
import android.graphics.Bitmap;
import android.graphics.Bitmap.CompressFormat;
import android.graphics.BitmapFactory;
import android.os.Build;
import android.util.Log;

package com.tos_bot.board;






public class BoardManager {
	static String _Path = "";

	private BoardManager() {

	}

	public static int[][] getBallArray() throws NotInTosException {
		IBoardProcesser bp = new TosBoardProcesser();
		return bp.getBoardOrbArrary();
	}
	public static void setOrbHash(){