Safe Haskell | None |
---|---|
Language | Haskell2010 |
The unpopulated dungeon generation routine.
- data FreshDungeon = FreshDungeon {}
- dungeonGen :: COps -> Caves -> Rnd FreshDungeon
- convertTileMaps :: COps -> Bool -> Rnd (Id TileKind) -> Maybe (Rnd (Id TileKind)) -> Int -> Int -> TileMapEM -> Rnd TileMap
- placeDownStairs :: CaveKind -> [Point] -> Rnd Point
- buildLevel :: COps -> Int -> GroupName CaveKind -> Int -> AbsDepth -> [Point] -> Rnd (Level, [Point])
- levelFromCaveKind :: COps -> CaveKind -> AbsDepth -> TileMap -> ([Point], [Point]) -> Int -> [Point] -> Bool -> 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 -> Bool -> Rnd (Id TileKind) -> Maybe (Rnd (Id TileKind)) -> Int -> Int -> TileMapEM -> Rnd TileMap Source #
placeDownStairs :: CaveKind -> [Point] -> Rnd Point Source #
Places yet another staircase (or escape), taking into account only the already existing stairs.