C# Class Procedurality.RiverBuilder

Afficher le fichier Open project: N3X15/VoxelSim

Méthodes publiques

Свойство Type Description
AllPossibleNodes List
End Point
Pathfinder Dijkstra
RiverNodes List
Start Point
chan Channel

Méthodes publiques

Méthode Description
DebugPathFinder ( int fromX, int fromY, int x, int y, PathFinderNodeType type, int totalCost, int cost ) : void
FindEndPoint ( int direction ) : Point
FindPath ( Point s, Point e ) : List
FindStartPoint ( int direction ) : Point
GenerateRiver ( float waterlevel, int seed, List &RiverPath ) : RiverBuilder
GenerateRiver ( float waterlevel, int seed, Point start, Point end ) : RiverBuilder
RiverBuilder ( Channel channel ) : System
toChannel ( ) : Channel
toLayer ( ) : Layer

Private Methods

Méthode Description
Clamp ( Point p ) : Point
CleanPath ( List nodes ) : void
CleanupFloodplain ( ) : void
CreateBank ( List nodes ) : void
DirectionFromAng ( double angle, int dist ) : Point
GetArrayIndex ( Point point ) : int
GetNearbyPixel ( Point origin, NearbyPosition relative ) : Point
GetNearbyPixel ( int origin, NearbyPosition relative ) : int
GetPixelWeight ( Point p ) : int
GetPixelWeights ( ) : int[]
GetPointFromArrayIndex ( int index ) : Point
GetRelativePosition ( int start, int finish ) : int
GetRelevantRegion ( Point start, Point finish ) : Rectangle
GetTraversalCost ( ) : ].int[
IsOnMap ( int x, int y ) : bool
UpdateProgress ( int VP, int IP, Point lp ) : void

Update pathfinding progress...

getInternodeTraversalCost ( int start, int finish ) : int
nearbyNodesHint ( int startingNode ) : IEnumerable

Method Details

DebugPathFinder() public méthode

public DebugPathFinder ( int fromX, int fromY, int x, int y, PathFinderNodeType type, int totalCost, int cost ) : void
fromX int
fromY int
x int
y int
type PathFinderNodeType
totalCost int
cost int
Résultat void

FindEndPoint() public méthode

public FindEndPoint ( int direction ) : Point
direction int
Résultat Point

FindPath() public méthode

public FindPath ( Point s, Point e ) : List
s Point
e Point
Résultat List

FindStartPoint() public méthode

public FindStartPoint ( int direction ) : Point
direction int
Résultat Point

GenerateRiver() public méthode

public GenerateRiver ( float waterlevel, int seed, List &RiverPath ) : RiverBuilder
waterlevel float
seed int
RiverPath List
Résultat RiverBuilder

GenerateRiver() public méthode

public GenerateRiver ( float waterlevel, int seed, Point start, Point end ) : RiverBuilder
waterlevel float
seed int
start Point
end Point
Résultat RiverBuilder

RiverBuilder() public méthode

public RiverBuilder ( Channel channel ) : System
channel Channel
Résultat System

toChannel() public méthode

public toChannel ( ) : Channel
Résultat Channel

toLayer() public méthode

public toLayer ( ) : Layer
Résultat Layer

Property Details

AllPossibleNodes public_oe property

public List AllPossibleNodes
Résultat List

End public_oe property

public Point End
Résultat Point

Pathfinder public_oe property

public Dijkstra Pathfinder
Résultat Dijkstra

RiverNodes public_oe property

public List RiverNodes
Résultat List

Start public_oe property

public Point Start
Résultat Point

chan public_oe property

public Channel,Procedurality chan
Résultat Channel