package com.veil.ai;

import com.badlogic.gdx.Game;
import com.badlogic.gdx.files.FileHandle;
import com.veil.game.GameConstant;
import com.veil.platforminterface.PlatformUtility;

public class EvaluationApp extends Game {

	public static ProfileTable durationTable;
	public static ProfileTable missCountTable;
	public static FileHandle fhTemp;
	
	private String[] typeDir = {"Enemy","Elite","Miniboss","Boss"};
	
	@Override
	public void create() {
		FileHandle rangeProfile = new FileHandle("C:\\Users\\angelix\\Documents\\CU DOC\\Profile\\timing_all\\Range");
		
		for(String type : typeDir){
			System.out.println("######$$$######  "+type+"  ######$$$######");
			durationTable = new ProfileTable();
			missCountTable = new ProfileTable();
			FileHandle baseline = new FileHandle("C:\\Users\\angelix\\Documents\\CU DOC\\Profile\\timing_all\\Battle\\"+type);
			FileHandle target = GameConstant.profileDir.child(type);
			ProfileEvaluator eva = new ProfileEvaluator();
	        eva.addBattleProfilePath(baseline);
	        eva.addRangeProfilePath(rangeProfile);
	        eva.begin();
	        eva.evaluate(target);
	        eva.end();
	        //durationTable.saveToFile(PlatformUtility.fileOperator.getStorageRoot().child("battle_duration_"+type+".csv"));
	        missCountTable.saveToFile(PlatformUtility.fileOperator.getStorageRoot().child("miss_count_"+type+".csv"));
		}
	}

}

@@ -300,24 +300,68 @@
 CountTable;%0A
+%09public static ProfileTable hpPercentTable;%0A
 %09public stat
@@ -382,16 +382,16 @@
 fhTemp;%0A
-
 %09%0A%09priva
@@ -780,16 +780,56 @@
 able();%0A
+%09%09%09hpPercentTable = new ProfileTable();%0A
 %09%09%09FileH
@@ -1227,10 +1227,8 @@
     
-//
 dura
@@ -1301,16 +1301,21 @@
 .child(%22
+eval_
 battle_d
@@ -1427,16 +1427,21 @@
 .child(%22
+eval_
 miss_cou
@@ -1460,16 +1460,135 @@
 csv%22));%0A
+%09        hpPercentTable.saveToFile(PlatformUtility.fileOperator.getStorageRoot().child(%22eval_hp_capped%22+type+%22.csv%22));%0A
 %09%09%7D%0A%09%7D%0A%0A

Change saving file name for evaluationApp