Adventure at Umalu  22nd March, 2013
Rogue-like Dungeon Crawler, written in Java
 All Classes Functions Variables Pages
Classes | Public Member Functions | Protected Member Functions | List of all members
jade.gen.map.Traditional Class Reference
Inheritance diagram for jade.gen.map.Traditional:

Public Member Functions

 Traditional ()
 
 Traditional (ColoredChar wallTile, ColoredChar floorTile, int minSize)
 

Protected Member Functions

void generateStep (World world, Dice dice)
 

Detailed Description

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.

Constructor & Destructor Documentation

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.

Parameters
wallTilethe tile used for impassible walls
floorTilethe tile used for passable floors
minSizethe minimum dimension of a room

The documentation for this class was generated from the following file: