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

Safe HaskellSafe-Infered

Game.LambdaHack.DungeonState

Contents

Description

Dungeon operations that require State, COps or Config type.

Synopsis

Dungeon generation

data FreshDungeon Source

Freshly generated and not yet populated dungeon.

Constructors

FreshDungeon 

Fields

entryLevel :: LevelId

starting level for the party

entryLoc :: Point

starting location for the party

freshDungeon :: Dungeon

level maps

generate :: COps -> CP -> Rnd FreshDungeonSource

Generate the dungeon for a new game.

Dungeon travel

whereToSource

Arguments

:: State

game state

-> Int

jump this many levels

-> Maybe (LevelId, Point)

target level and the location of its receiving stairs

Compute the level identifier and starting location on the level, after a level change.