LambdaHack-0.2.14: A roguelike game engine in early development

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.

Internal functions

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]) -> Freqs -> Int -> Freqs -> Int -> Bool -> Level Source

Build rudimentary level from a cave kind.