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

Game.LambdaHack.Client.UI.MsgM

Description

Monadic operations on game messages.

Synopsis

Documentation

msgAddDuplicate :: (MonadClient m, MonadClientUI m, MsgShared a) => a -> Text -> m Bool Source #

Add a shared message to the current report. Say if it was a duplicate.

msgAddDistinct :: (MonadClient m, MonadClientUI m) => MsgClassDistinct -> (Text, Text) -> m () Source #

Add a message comprising of two different texts, one to show, the other to save to messages log, to the current report.

msgAdd :: (MonadClient m, MonadClientUI m, MsgShared a) => a -> Text -> m () Source #

Add a message to the current report.

msgLnAdd :: (MonadClient m, MonadClientUI m, MsgShared a) => a -> Text -> m () Source #

Add a message to the current report. End previously collected report, if any, with newline.

promptMainKeys :: (MonadClient m, MonadClientUI m) => m () Source #

Add a prompt with basic keys description.

recordHistory :: MonadClientUI m => m () Source #

Store new report in the history and archive old report.