C# Class Dwarrowdelf.TerrainGen.DungeonTerrainGenerator

Mostra file Open project: tomba/dwarrowdelf Class Usage Examples

Public Methods

Method Description
DungeonTerrainGenerator ( TerrainData data, Random random ) : System
Generate ( int seed ) : void

Private Methods

Method Description
Connect ( BSPTree bsp, int i, bool isLeft, int z ) : void
ConnectRooms ( IntGrid2 room1, IntGrid2 room2, int z ) : void
CreateBaseGrid ( ) : void
CreateCorridor ( IntVector2 from, IntVector2 to, int z, bool horiz ) : void
CreateDungeon ( ) : void
CreateDungeonLevel ( BSPTree bsp, int z ) : void
CreateNodes ( BSPTree bsp, IntGrid2 grid, int i ) : void
CreateStairs ( ) : void
CreateTileGrid ( ) : void
FindNearestRoom ( BSPTree bsp, int i, IntVector2 p ) : int
GenerateTerrain ( int seed ) : void
GetRandomDouble ( double min, double max ) : double
GetRandomInt ( int max ) : int
GetTileData ( IntVector3 p ) : TileData
SetTileData ( IntVector3 p, TileData td ) : void

Method Details

DungeonTerrainGenerator() public method

public DungeonTerrainGenerator ( TerrainData data, Random random ) : System
data TerrainData
random System.Random
return System

Generate() public method

public Generate ( int seed ) : void
seed int
return void