EpPathFinding.BaseGrid.GetNodeAt C# (CSharp) Method

GetNodeAt() public abstract method

public abstract GetNodeAt ( EpPathFinding.GridPos iPos ) : Node
iPos EpPathFinding.GridPos
return Node
        public abstract Node GetNodeAt(GridPos iPos);

Same methods

BaseGrid::GetNodeAt ( int iX, int iY ) : Node

Usage Example

        public JumpPointParam(BaseGrid iGrid, GridPos iStartPos, GridPos iEndPos, bool iCrossCorner = true, HeuristicMode iMode = HeuristicMode.EUCLIDEAN)
        {
            switch (iMode)
            {
                case HeuristicMode.MANHATTAN:
                    heuristic = new HeuristicDelegate(Heuristic.Manhattan);
                    break;
                case HeuristicMode.EUCLIDEAN:
                    heuristic = new HeuristicDelegate(Heuristic.Euclidean);
                    break;
                case HeuristicMode.CHEBYSHEV:
                    heuristic = new HeuristicDelegate(Heuristic.Chebyshev);
                    break;
                default:
                    heuristic = new HeuristicDelegate(Heuristic.Euclidean);
                    break;
            }
            crossCorner = iCrossCorner;

            openList = new List<Node>();

            searchGrid = iGrid;
            startNode = searchGrid.GetNodeAt(iStartPos.x, iStartPos.y);
            endNode = searchGrid.GetNodeAt(iEndPos.x, iEndPos.y);
        }
All Usage Examples Of EpPathFinding.BaseGrid::GetNodeAt