Wiki

Clone wiki

RogueSharp / RogueSharp.MapCreation / CaveMapCreationStrategy_1 / CreateMap

CaveMapCreationStrategyTCreateMap Method

Creates a new IMap of the specified type.

Namespace: RogueSharp.MapCreation
Assembly:

Syntax

public T CreateMap()

Return Value

Type: T
An IMap of the specified type

Implements

IMapCreationStrategyTCreateMap

Remarks

The map will be generated using cellular automata. First each cell in the map will be set to a floor or wall randomly based on the specified fillProbability. Next each cell will be examined a number of times, and in each iteration it may be turned into a wall if there are enough other walls near it. Once finished iterating and examining neighboring cells, any isolated map regions will be connected with paths.

See Also

Reference

CaveMapCreationStrategyT Class
RogueSharp.MapCreation Namespace

[4]: 2014-2016 Faron Bracy

Updated