LambdaHack-0.11.0.1: A game engine library for tactical squad ASCII roguelike dungeon crawlers

Safe Haskell | None
Language | Haskell2010

Game.LambdaHack.Client.UI.MsgM

Description

Monadic operations on game messages.

Synopsis

- msgAddDuplicate :: (MonadClientUI m, MsgShared a) => a -> Text -> m Bool
- msgAddDistinct :: MonadClientUI m => MsgClassDistinct -> (Text, Text) -> m ()
- msgAdd :: (MonadClientUI m, MsgShared a) => a -> Text -> m ()
- msgLnAdd :: (MonadClientUI m, MsgShared a) => a -> Text -> m ()
- promptMainKeys :: MonadClientUI m => m ()
- recordHistory :: MonadClientUI m => m ()
- tutorialHintMsgAdd :: MonadClientUI m => TutorialHints -> m ()

# Documentation

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

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

msgAddDistinct :: 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 :: (MonadClientUI m, MsgShared a) => a -> Text -> m () Source #

Add a message to the current report.

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

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

promptMainKeys :: 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.

tutorialHintMsgAdd :: MonadClientUI m => TutorialHints -> m () Source #

Add a tutorial hint message to the current report.