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

Safe HaskellNone

Game.LambdaHack.Client.Binding

Description

Generic binding of keys to commands, procesing macros, printing command help. 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

kcmd :: Map KM (Text, Bool, HumanCmd)

binding keys to commands

kmacro :: Map KM KM

macro map

kmajor :: [KM]

major commands

kminor :: [KM]

minor commands

krevMap :: Map HumanCmd KM

from cmds to their main keys

stdBindingSource

Arguments

:: 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.