More plot analysis

This commit is contained in:
boy0001 2015-07-18 02:50:32 +10:00
parent cebc5c1df3
commit 30b5d89dde
10 changed files with 510 additions and 70 deletions

View file

@ -63,18 +63,11 @@ public class DebugExec extends SubCommand {
final String arg = args[0].toLowerCase();
switch (arg) {
case "analyze": {
final Plot plot = MainUtil.getPlot(player.getLocation());
HybridUtils.manager.analyzePlot(plot, new RunnableVal<PlotAnalysis>() {
PlotAnalysis.calcOptimalModifiers(new Runnable() {
@Override
public void run() {
List<Double> result = new ArrayList<>();
result.add(Math.round(value.changes * 100) / 100d);
result.add(Math.round(value.faces * 100) / 100d);
result.add(Math.round(value.data * 100) / 100d);
result.add(Math.round(value.air * 100) / 100d);
result.add(Math.round(value.variety * 100) / 100d);
Flag flag = new Flag(FlagManager.getFlag("analysis"), result);
FlagManager.addPlotFlag(plot, flag);
PS.log("&cTHIS FUNCTION IS A WORK IN PROGRESS");
PS.log("&c - ");
}
});
return true;