LambdaHack- A game engine library for roguelike dungeon crawlers

Safe HaskellNone



Client monad for interacting with a human through UI.



msgAdd :: MonadClientUI m => Msg -> m () Source

Add a message to the current report.

msgReset :: MonadClientUI m => Msg -> m () Source

Wipe out and set a new value for the current report.

recordHistory :: MonadClientUI m => m () Source

Store current report in the history and reset report.

lookAt Source


:: MonadClientUI m 
=> Bool


-> Text

how to start tile description

-> Bool

can be seen right now?

-> Point

position to describe

-> ActorId

the actor that looks

-> Text

an extra sentence to print

-> m Text 

Produces a textual description of the terrain and items at an already explored position. Mute for unknown positions. The detailed variant is for use in the targeting mode.

itemOverlay :: MonadClient m => CStore -> LevelId -> ItemBag -> m Overlay Source

Create a list of item names.