LambdaHack-0.2.12: A roguelike game engine in early and active development

Safe HaskellNone

Game.LambdaHack.Server.DungeonGen.Cave

Description

Generation of caves (not yet inhabited dungeon levels) from cave kinds.

Synopsis

Documentation

data Cave Source

The type of caves (not yet inhabited dungeon levels).

Constructors

Cave 

Fields

dkind :: !(Id CaveKind)

the kind of the cave

dmap :: !TileMapEM

tile kinds in the cave

dplaces :: ![Place]

places generated in the cave

dnight :: !Bool

whether the cave is dark

Instances

buildCaveSource

Arguments

:: COps

content definitions

-> Int

depth of the level to generate

-> Int

maximum depth of the dungeon

-> Id CaveKind

cave kind to use for generation

-> Rnd Cave 

Cave generation by an algorithm inspired by the original Rogue,