![]() |
Adventure at Umalu
22nd March, 2013
Rogue-like Dungeon Crawler, written in Java
|
Public Member Functions | |
Traditional () | |
Traditional (ColoredChar wallTile, ColoredChar floorTile, int minSize) | |
Protected Member Functions | |
void | generateStep (World world, Dice dice) |
Uses a binary space partitioning algorithm to generate rooms, and the connect them using the binary space partition tree. Cycles are then added to make the maps more interesting. This algorithm yields traditional roguelike maps with rectangular rooms connected by corridors.
jade.gen.map.Traditional.Traditional | ( | ) |
Instantiates a BSP with default parameters. Room minSize is 4. Wall and floor tiles are '#' and '.' respectively.
jade.gen.map.Traditional.Traditional | ( | ColoredChar | wallTile, |
ColoredChar | floorTile, | ||
int | minSize | ||
) |
Instantiates a custom BSP with provided parameters.
wallTile | the tile used for impassible walls |
floorTile | the tile used for passable floors |
minSize | the minimum dimension of a room |