use of eidolons.game.battlecraft.ai.tools.path.PathBuilder in project Eidolons by IDemiurge.
the class DC_MovementManager method buildPath.
public List<ActionPath> buildPath(Unit unit, Coordinates coordinates) {
List<DC_ActiveObj> moves = getMoves(unit);
PathBuilder builder = PathBuilder.getInstance().init(moves, new Action(unit.getAction("Move")));
List<ActionPath> paths = builder.build(new ListMaster<Coordinates>().getList(coordinates));
if (paths.isEmpty()) {
return null;
}
return paths;
}
Aggregations