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

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)
 

Detailed Description

Generates terrain by randomly placing tiles according to a specific mixture of two discrete distributions.

Constructor & Destructor Documentation

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.

Parameters
probImpassthe 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.

Parameters
probImpassthe probability of an impassible tile
passthe possible faces of the passable tiles
impassthe possible faces of the impassible tiles

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