Safe Haskell | None |
---|---|
Language | Haskell2010 |
Game.LambdaHack.Client.UI.HumanCmd
Description
Abstract syntax human player commands.
- data CmdCategory
- = CmdMenu
- | CmdMove
- | CmdItem
- | CmdTgt
- | CmdAuto
- | CmdMeta
- | CmdMouse
- | CmdInternal
- | CmdDebug
- | CmdMinimal
- data HumanCmd
- = Move !Vector
- | Run !Vector
- | Wait
- | MoveItem ![CStore] !CStore !(Maybe Part) !Part !Bool
- | DescribeItem !ItemDialogMode
- | Project ![Trigger]
- | Apply ![Trigger]
- | AlterDir ![Trigger]
- | TriggerTile ![Trigger]
- | RunOnceAhead
- | MoveOnceToCursor
- | RunOnceToCursor
- | ContinueToCursor
- | GameRestart !(GroupName ModeKind)
- | GameExit
- | GameSave
- | Tactic
- | Automate
- | GameDifficultyCycle
- | PickLeader !Int
- | MemberCycle
- | MemberBack
- | SelectActor
- | SelectNone
- | Clear
- | StopIfTgtMode
- | SelectWithPointer
- | Repeat !Int
- | Record
- | History
- | MarkVision
- | MarkSmell
- | MarkSuspect
- | Help
- | MainMenu
- | Macro !Text ![String]
- | MoveCursor !Vector !Int
- | TgtFloor
- | TgtEnemy
- | TgtAscend !Int
- | EpsIncr !Bool
- | TgtClear
- | CursorUnknown
- | CursorItem
- | CursorStair !Bool
- | Cancel
- | Accept
- | CursorPointerFloor
- | CursorPointerEnemy
- | TgtPointerFloor
- | TgtPointerEnemy
- data Trigger
- noRemoteHumanCmd :: HumanCmd -> Bool
- categoryDescription :: CmdCategory -> Text
- cmdDescription :: HumanCmd -> Text
Documentation
data CmdCategory Source #
Constructors
CmdMenu | |
CmdMove | |
CmdItem | |
CmdTgt | |
CmdAuto | |
CmdMeta | |
CmdMouse | |
CmdInternal | |
CmdDebug | |
CmdMinimal |
Instances
Abstract syntax of player commands.
Constructors
Constructors
ApplyItem | |
AlterFeature | |
TriggerFeature | |
noRemoteHumanCmd :: HumanCmd -> Bool Source #
Commands that are forbidden on a remote level, because they would usually take time when invoked on one. Note that some commands that take time are not included, because they don't take time in targeting mode.
categoryDescription :: CmdCategory -> Text Source #
cmdDescription :: HumanCmd -> Text Source #
Description of player commands.