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

Safe HaskellSafe-Infered



Abstract syntax of player commands and their semantics.



data Cmd Source

Abstract syntax of player commands. The type is abstract, but the values are created outside this module via the Read class (from config file) .


majorCmd :: Cmd -> BoolSource

Major commands land on the first page of command help.

timedCmd :: Cmd -> BoolSource

Time cosuming commands are marked as such in help and cannot be invoked in targeting mode on a remote level (level different than the level of the selected hero).

cmdSemantics :: Cmd -> ActionFrame ()Source

The semantics of player commands in terms of the Action monad.

cmdDescription :: Cmd -> StringSource

Description of player commands.