![]() |
Adventure at Umalu
22nd March, 2013
Rogue-like Dungeon Crawler, written in Java
|
Public Member Functions | |
Terrain () | |
Terrain (int probImpass) | |
Terrain (int probImpass, List< ColoredChar > pass, List< ColoredChar > impass) | |
Protected Member Functions | |
void | generateStep (World world, Dice dice) |
Generates terrain by randomly placing tiles according to a specific mixture of two discrete distributions.
jade.gen.map.Terrain.Terrain | ( | ) |
Initializes an instance of Terrain with default values.
jade.gen.map.Terrain.Terrain | ( | int | probImpass | ) |
Initializes an instance of Terrain with a given probability of an impassible tile.
probImpass | the probability of an impassible tile |
jade.gen.map.Terrain.Terrain | ( | int | probImpass, |
List< ColoredChar > | pass, | ||
List< ColoredChar > | impass | ||
) |
Initializes an instance of Terrain with a given probability of an impassible tile, as well as custom tiles. Passable and impassible tiles will be distributed according to the parameter probImpass, chosen with uniform chance from the two lists of tile faces.
probImpass | the probability of an impassible tile |
pass | the possible faces of the passable tiles |
impass | the possible faces of the impassible tiles |