LambdaHack-0.6.1.0: A game engine library for roguelike dungeon crawlers

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Server.DungeonGen

Contents

Description

The unpopulated dungeon generation routine.

Synopsis

Documentation

data FreshDungeon Source #

Freshly generated and not yet populated dungeon.

Constructors

FreshDungeon 

Fields

dungeonGen :: COps -> Caves -> Rnd FreshDungeon Source #

Generate the dungeon for a new game.

Internal operations

placeDownStairs :: CaveKind -> [Point] -> Rnd Point Source #

Places yet another staircase (or escape), taking into account only the already existing stairs.

buildLevel :: COps -> Int -> GroupName CaveKind -> Int -> AbsDepth -> [Point] -> Rnd (Level, [Point]) Source #

Create a level from a cave.

levelFromCaveKind :: COps -> CaveKind -> AbsDepth -> TileMap -> ([Point], [Point]) -> Int -> [Point] -> Bool -> Level Source #

Build rudimentary level from a cave kind.