C# 클래스 CityGenerator.RoadBuilder

파일 보기 프로젝트 열기: TobieD/City-Generator

공개 메소드들

메소드 설명
BuildRoad ( DistrictCell cell, bool generateInnerRoads, int subdivisions ) : List

Build a road inside a district cell

비공개 메소드들

메소드 설명
CreateIntersectedLine ( Line newLine, Point ip, bool &flipped ) : Line
FindLongestLineInCell ( List edges ) : Voronoi.Line>.System.Collections.Generic.KeyValuePair
GenerateRoad ( List roads, List inner, Road startLine, Road endLine, int branches ) : List

Keep generating roads until branches are zero

HandlePossibleRoadIntersections ( Line line, Road startLine, Road endLine, List borders, List innerRoads ) : void
SplitLine ( Line line, Point ip ) : Voronoi.Line>.System.Collections.Generic.KeyValuePair

메소드 상세

BuildRoad() 공개 메소드

Build a road inside a district cell
public BuildRoad ( DistrictCell cell, bool generateInnerRoads, int subdivisions ) : List
cell DistrictCell
generateInnerRoads bool
subdivisions int
리턴 List