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

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Server.DungeonGen

Contents

Description

The unpopulated dungeon generation routine.

Synopsis

Public API

data FreshDungeon Source

Freshly generated and not yet populated dungeon.

Constructors

FreshDungeon 

Fields

freshDungeon :: !Dungeon

maps for all levels

freshTotalDepth :: !AbsDepth

absolute dungeon depth

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

Generate the dungeon for a new game.

buildLevel :: COps -> Cave -> AbsDepth -> LevelId -> LevelId -> LevelId -> AbsDepth -> Int -> Maybe Bool -> Rnd Level Source

Create a level from a cave.

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

Build rudimentary level from a cave kind.