Safe Haskell | None |
---|---|
Language | Haskell2010 |
Abstract syntax of human player commands.
- data CmdCategory
- categoryDescription :: CmdCategory -> Text
- data CmdArea
- areaDescription :: CmdArea -> Text
- type CmdTriple = ([CmdCategory], Text, HumanCmd)
- data HumanCmd
- = Macro [String]
- | ByArea [(CmdArea, HumanCmd)]
- | ByAimMode { }
- | ByItemMode { }
- | ComposeIfLocal HumanCmd HumanCmd
- | ComposeUnlessError HumanCmd HumanCmd
- | Compose2ndLocal HumanCmd HumanCmd
- | LoopOnNothing HumanCmd
- | Wait
- | Wait10
- | MoveDir Vector
- | RunDir Vector
- | RunOnceAhead
- | MoveOnceToXhair
- | RunOnceToXhair
- | ContinueToXhair
- | MoveItem [CStore] CStore (Maybe Part) Bool
- | Project [Trigger]
- | Apply [Trigger]
- | AlterDir [Trigger]
- | AlterWithPointer [Trigger]
- | Help
- | ItemMenu
- | MainMenu
- | GameDifficultyIncr
- | GameWolfToggle
- | GameFishToggle
- | GameScenarioIncr
- | GameRestart
- | GameExit
- | GameSave
- | Tactic
- | Automate
- | Clear
- | SortSlots
- | ChooseItem ItemDialogMode
- | ChooseItemMenu ItemDialogMode
- | ChooseItemProject [Trigger]
- | ChooseItemApply [Trigger]
- | PickLeader Int
- | PickLeaderWithPointer
- | MemberCycle
- | MemberBack
- | SelectActor
- | SelectNone
- | SelectWithPointer
- | Repeat Int
- | Record
- | History
- | MarkVision
- | MarkSmell
- | MarkSuspect
- | SettingsMenu
- | ChallengesMenu
- | Cancel
- | Accept
- | TgtClear
- | ItemClear
- | MoveXhair Vector Int
- | AimTgt
- | AimFloor
- | AimEnemy
- | AimItem
- | AimAscend Int
- | EpsIncr Bool
- | XhairUnknown
- | XhairItem
- | XhairStair Bool
- | XhairPointerFloor
- | XhairPointerEnemy
- | AimPointerFloor
- | AimPointerEnemy
- data Trigger
Documentation
data CmdCategory Source #
Symbolic representation of areas of the screen used to define the meaning of mouse button presses relative to where the mouse points to.
areaDescription :: CmdArea -> Text Source #
type CmdTriple = ([CmdCategory], Text, HumanCmd) Source #
This triple of command categories, description and the command term itself defines the meaning of a human command as entered via a keypress, mouse click or chosen from a menu.
Abstract syntax of human player commands.
Description of how item manipulation is triggered and communicated to the player.