示例#1
0
        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);
        }
示例#2
0
        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);
        }