Safe Haskell | None |
---|---|
Language | Haskell2010 |
Game.LambdaHack.Client.UI.MsgClient
Description
Client monad for interacting with a human through UI.
- msgAdd :: MonadClientUI m => Msg -> m ()
- msgReset :: MonadClientUI m => Msg -> m ()
- recordHistory :: MonadClientUI m => m ()
- type SlideOrCmd a = Either Slideshow a
- failWith :: MonadClientUI m => Msg -> m (SlideOrCmd a)
- failSlides :: MonadClientUI m => Slideshow -> m (SlideOrCmd a)
- failSer :: MonadClientUI m => ReqFailure -> m (SlideOrCmd a)
- failMsg :: MonadClientUI m => Msg -> m Slideshow
- lookAt :: MonadClientUI m => Bool -> Text -> Bool -> Point -> ActorId -> Text -> m Text
- itemOverlay :: MonadClient m => CStore -> LevelId -> ItemBag -> m Overlay
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.
type SlideOrCmd a = Either Slideshow a Source
failWith :: MonadClientUI m => Msg -> m (SlideOrCmd a) Source
failSlides :: MonadClientUI m => Slideshow -> m (SlideOrCmd a) Source
failSer :: MonadClientUI m => ReqFailure -> m (SlideOrCmd a) Source
failMsg :: MonadClientUI m => Msg -> m Slideshow 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 -> LevelId -> ItemBag -> m Overlay Source
Create a list of item names.