Wiki

Clone wiki

RogueSharp / RogueSharp.MapCreation / CaveMapCreationStrategy_1 / _ctor

CaveMapCreationStrategyT Constructor (Int32, Int32, Int32, Int32, Int32)

Constructs a new CaveMapCreationStrategy with the specified parameters

Namespace: RogueSharp.MapCreation
Assembly:

Syntax

public CaveMapCreationStrategy(
    int width,
    int height,
    int fillProbability,
    int totalIterations,
    int cutoffOfBigAreaFill
)

Parameters

width

Type: SystemInt32
The width of the Map to be created

height

Type: SystemInt32
The height of the Map to be created

fillProbability

Type: SystemInt32
Recommend int between 40 and 60. Percent chance that a given cell will be a floor when randomizing all cells.

totalIterations

Type: SystemInt32
Recommend int between 2 and 5. Number of times to execute the cellular automata algorithm.

cutoffOfBigAreaFill

Type: SystemInt32
Recommend int less than 4. The interation number to switch from the large area fill algorithm to a nearest neighbor algorithm

Remarks

Uses DotNetRandom as its RNG

See Also

Reference

CaveMapCreationStrategyT Class
RogueSharp.MapCreation Namespace

[3]: 2014-2016 Faron Bracy

Updated