LambdaHack-0.11.0.0: A game engine library for tactical squad ASCII roguelike dungeon crawlers
Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Server.StartM

Description

Operations for starting and restarting the game.

Synopsis

Documentation

applyDebug :: MonadServer m => m () Source #

Apply options that don't need a new game.

Internal operations

mapFromFuns :: Ord b => [a] -> [a -> b] -> Map b a Source #

populateDungeon :: forall m. MonadServerAtomic m => m () Source #

findEntryPoss :: COps -> Level -> Int -> Rnd [Point] Source #

Find starting postions for all factions. Try to make them distant from each other. Place as many of the factions, as possible, over stairs. Place the first faction(s) over escape(s) (we assume they are guardians of the escapes). This implies the inital factions (if any) start far from escapes.