LambdaHack-0.2.12: A roguelike game engine in early and active development

Safe HaskellNone

Game.LambdaHack.Client.Binding

Description

Binding of keys to commands. No operation in this module involves the State or Action type.

Synopsis

Documentation

data Binding Source

Bindings and other information about human player commands.

Constructors

Binding 

Fields

bcmdMap :: !(Map KM (Text, CmdCategory, HumanCmd))

binding of keys to commands

bcmdList :: ![(KM, (Text, CmdCategory, HumanCmd))]

the properly ordered list of commands for the help menu

brevMap :: !(Map HumanCmd KM)

and from commands to their keys

stdBindingSource

Arguments

:: Ops RuleKind

default game rules

-> ConfigUI

game config

-> Binding

concrete binding

Binding of keys to movement and other standard commands, as well as commands defined in the config file.

keyHelp :: Binding -> SlideshowSource

Produce a set of help screens from the key bindings.