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

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Client.UI.HandleHelperM

Contents

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.

lookAtItems Source #

Arguments

:: MonadClientUI m 
=> Bool

can be seen right now?

-> Point

position to describe

-> ActorId

the actor that looks

-> m Text 

Produces a textual description of items at a position.

lookAtPosition :: MonadClientUI m => LevelId -> Point -> m Text Source #

Produces a textual description of everything at the requested level's position.

cycleLore :: MonadClientUI m => [m KM] -> [m KM] -> m () Source #

Internal operations

lookAtTile Source #

Arguments

:: MonadClientUI m 
=> Bool

can be seen right now?

-> Point

position to describe

-> ActorId

the actor that looks

-> LevelId

level the position is at

-> m Text 

Produces a textual description of the tile at a position.

lookAtActors Source #

Arguments

:: MonadClientUI m 
=> Point

position to describe

-> LevelId

level the position is at

-> m Text 

Produces a textual description of actors at a position.