LambdaHack-0.6.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

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.

itemOverlay :: MonadClientUI m => CStore -> LevelId -> ItemBag -> m OKX Source #

Create a list of item names.