public static AimPath GetPath(this Board board, Point pointFrom, Point pointTo, Board prevBoard) { var path = FindWay.GetPath(board, pointFrom, pointTo, board.GetStepBarriers(pointFrom, prevBoard), board.GetJumpBarriers(pointFrom, prevBoard)); return(path); }
public static AimPath GetPathFromHero(this Board board, Point pointTo, Board prevBoard) { var path = FindWay.GetPath(board, board.GetMe(), pointTo, board.GetStepBarriers(prevBoard).Where(x => x != pointTo).ToList(), board.GetJumpBarriers(prevBoard)); return(path); }