C# Class Dwarrowdelf.TerrainGen.DungeonTerrainGenerator

Afficher le fichier Open project: tomba/dwarrowdelf Class Usage Examples

Méthodes publiques

Méthode Description
DungeonTerrainGenerator ( TerrainData data, Random random ) : System
Generate ( int seed ) : void

Private Methods

Méthode 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 méthode

public DungeonTerrainGenerator ( TerrainData data, Random random ) : System
data TerrainData
random System.Random
Résultat System

Generate() public méthode

public Generate ( int seed ) : void
seed int
Résultat void