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

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Client.UI.HandleHelperM

Description

Helper functions for both inventory management and human commands.

Synopsis

Documentation

data FailError Source #

Message describing the cause of failure of human command.

memberCycle :: MonadClientUI m => Bool -> m MError Source #

Switches current member to the next on the level, if any, wrapping.

memberBack :: MonadClientUI m => Bool -> m MError Source #

Switches current member to the previous in the whole dungeon, wrapping.

pickLeader :: MonadClientUI m => Bool -> ActorId -> m Bool Source #

Select a faction leader. False, if nothing to do.

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 aiming mode.