Safe Haskell | None |
---|---|
Language | Haskell2010 |
The unpopulated dungeon generation routine.
- data FreshDungeon = FreshDungeon {}
- dungeonGen :: COps -> Caves -> Rnd FreshDungeon
- convertTileMaps :: COps -> Rnd (Id TileKind) -> Maybe (Rnd (Id TileKind)) -> Int -> Int -> TileMapEM -> Rnd TileMap
- placeStairs :: COps -> TileMap -> CaveKind -> [Point] -> Rnd Point
- buildLevel :: COps -> Cave -> AbsDepth -> LevelId -> LevelId -> LevelId -> AbsDepth -> Int -> Maybe Bool -> Rnd Level
- levelFromCaveKind :: COps -> CaveKind -> AbsDepth -> TileMap -> ([Point], [Point]) -> Int -> Freqs ItemKind -> Int -> Freqs ItemKind -> Int -> [Point] -> Level
- findGenerator :: COps -> LevelId -> LevelId -> LevelId -> AbsDepth -> Int -> (GroupName CaveKind, Maybe Bool) -> Rnd Level
Documentation
data FreshDungeon Source
Freshly generated and not yet populated dungeon.
FreshDungeon | |
|
dungeonGen :: COps -> Caves -> Rnd FreshDungeon Source
Generate the dungeon for a new game.
Internal operations
convertTileMaps :: COps -> Rnd (Id TileKind) -> Maybe (Rnd (Id TileKind)) -> Int -> Int -> TileMapEM -> Rnd TileMap Source
buildLevel :: COps -> Cave -> AbsDepth -> LevelId -> LevelId -> LevelId -> AbsDepth -> Int -> Maybe Bool -> Rnd Level Source
Create a level from a cave.