LambdaHack-0.2.14: A roguelike game engine in early development

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Client.UI.MsgClient

Description

Client monad for interacting with a human through UI.

Synopsis

Documentation

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

Arguments

:: MonadClientUI m 
=> Bool

detailed?

-> 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 -> ItemBag -> m Overlay Source

Create a list of item names.