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

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Client.UI.HandleHumanLocalClient

Contents

Description

Semantics of HumanCmd client commands that do not return server commands. None of such commands takes game time. TODO: document

Synopsis

Assorted commands

memberCycleHuman :: MonadClientUI m => m Slideshow Source #

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

memberBackHuman :: MonadClientUI m => m Slideshow Source #

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

clearHuman :: Monad m => m () Source #

Clear current messages, show the next screen if any.

helpHuman :: MonadClientUI m => m Slideshow Source #

Display command help.

mainMenuHuman :: MonadClientUI m => m Slideshow Source #

Display the main menu.

Commands specific to targeting

moveCursorHuman :: MonadClientUI m => Vector -> Int -> m Slideshow Source #

Move the cursor. Assumes targeting mode.

tgtFloorHuman :: MonadClientUI m => m Slideshow Source #

Cycle targeting mode. Do not change position of the cursor, switch among things at that position.

tgtAscendHuman :: MonadClientUI m => Int -> m Slideshow Source #

Change the displayed level in targeting mode to (at most) k levels shallower. Enters targeting mode, if not already in one.

epsIncrHuman :: MonadClientUI m => Bool -> m Slideshow Source #

Tweak the eps parameter of the targeting digital line.

cancelHuman :: MonadClientUI m => m Slideshow -> m Slideshow Source #

Cancel something, e.g., targeting mode, resetting the cursor to the position of the leader. Chosen target is not invalidated.

acceptHuman :: MonadClientUI m => m Slideshow -> m Slideshow Source #

Accept something, e.g., targeting mode, keeping cursor where it was. Or perform the default action, if nothing needs accepting.