LambdaHack-0.4.9.0: A game engine library for roguelike dungeon crawlers

Safe HaskellNone

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.

lookAtSource

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 OverlaySource

Create a list of item names.