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

Safe HaskellNone

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 SlideshowSource

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

memberBackHuman :: MonadClientUI m => m SlideshowSource

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

describeItemHuman :: MonadClientUI m => CStore -> m SlideshowSource

Display items from a given container store and describe the chosen one.

allOwnedHuman :: MonadClientUI m => m SlideshowSource

Display the sum of equipments and inventory of the whole party.

clearHuman :: Monad m => m ()Source

Clear current messages, show the next screen if any.

helpHuman :: MonadClientUI m => m SlideshowSource

Display command help.

mainMenuHuman :: MonadClientUI m => m SlideshowSource

Display the main menu.

Commands specific to targeting

moveCursorHuman :: MonadClientUI m => Vector -> Int -> m SlideshowSource

Move the cursor. Assumes targeting mode.

tgtFloorHuman :: MonadClientUI m => m SlideshowSource

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

tgtAscendHuman :: MonadClientUI m => Int -> m SlideshowSource

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 SlideshowSource

Tweak the eps parameter of the targeting digital line.

cancelHuman :: MonadClientUI m => m Slideshow -> m SlideshowSource

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 SlideshowSource

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