Пример #1
0
    public static List <RoadData> RoadPathStarNeighborhood(SearchData searchData, RoadData currentRoad)
    {//TODO: diagonales!!
        List <RoadData> rslt;

        if (searchData.start == currentRoad)
        {
            rslt = currentRoad.AccessibleFreeNeighbors(searchData.startOrientation);
        }
        else
        {
            rslt = currentRoad.Neighbors();
        }

        return(rslt);
    }