/** * Helper function to perform some modifications to a given path. * Intended to happen after we pick the best path. * @param path The ranked path to process * @return Altered move path */ private MovePath performPathPostProcessing(final RankedPath path) { return performPathPostProcessing(path.getPath(), path.getExpectedDamage()); }
log(getClass(), METHOD_NAME, LogLevel.WARNING, "No valid paths found."); return performPathPostProcessing(new MovePath(game, entity), 0); return performPathPostProcessing(new MovePath(game, entity), 0); + bestpath.getRank()); return performPathPostProcessing(bestpath); } finally { precognition.unPause();