C# Class Terraria.GameContent.Generation.TrackGenerator

Mostrar archivo Open project: EmuDevs/EDTerraria Class Usage Examples

Public Methods

Method Description
FindPath ( int x, int y, int minimumLength, bool debugMode = false ) : bool
Generate ( int trackCount, int minimumLength ) : void
Run ( Point start ) : void
Run ( int trackCount = 30, int minimumLength = 250 ) : void

Private Methods

Method Description
CanTrackBePlaced ( int x, int y ) : bool
IsLocationEmpty ( int x, int y ) : bool
SmoothTrack ( TrackHistory history, int length ) : void

Method Details

FindPath() public method

public FindPath ( int x, int y, int minimumLength, bool debugMode = false ) : bool
x int
y int
minimumLength int
debugMode bool
return bool

Generate() public method

public Generate ( int trackCount, int minimumLength ) : void
trackCount int
minimumLength int
return void

Run() public static method

public static Run ( Point start ) : void
start Point
return void

Run() public static method

public static Run ( int trackCount = 30, int minimumLength = 250 ) : void
trackCount int
minimumLength int
return void