Safe Haskell | None |
---|---|
Language | Haskell2010 |
Game.LambdaHack.Client.UI.HumanCmd
Description
Abstract syntax of human player commands.
Synopsis
- data CmdCategory
- categoryDescription :: CmdCategory -> Text
- data CmdArea
- areaDescription :: CmdArea -> Text
- type CmdTriple = ([CmdCategory], Text, HumanCmd)
- data AimModeCmd = AimModeCmd {}
- data HumanCmd
- = Macro [String]
- | ByArea [(CmdArea, HumanCmd)]
- | ByAimMode AimModeCmd
- | ComposeIfLocal HumanCmd HumanCmd
- | ComposeUnlessError HumanCmd HumanCmd
- | Compose2ndLocal HumanCmd HumanCmd
- | LoopOnNothing HumanCmd
- | ExecuteIfClear HumanCmd
- | Wait
- | Wait10
- | Yell
- | MoveDir Vector
- | RunDir Vector
- | RunOnceAhead
- | MoveOnceToXhair
- | RunOnceToXhair
- | ContinueToXhair
- | MoveItem [CStore] CStore (Maybe Part) Bool
- | Project
- | Apply
- | AlterDir [TriggerTile]
- | AlterWithPointer [TriggerTile]
- | Help
- | Hint
- | ItemMenu
- | MainMenu
- | MainMenuAutoOn
- | MainMenuAutoOff
- | Dashboard
- | GameDifficultyIncr
- | GameWolfToggle
- | GameFishToggle
- | GameScenarioIncr
- | GameRestart
- | GameQuit
- | GameDrop
- | GameExit
- | GameSave
- | Tactic
- | Automate
- | AutomateToggle
- | AutomateBack
- | ChooseItem ItemDialogMode
- | ChooseItemMenu ItemDialogMode
- | ChooseItemProject [TriggerItem]
- | ChooseItemApply [TriggerItem]
- | PickLeader Int
- | PickLeaderWithPointer
- | MemberCycle
- | MemberBack
- | SelectActor
- | SelectNone
- | SelectWithPointer
- | Repeat Int
- | Record
- | AllHistory
- | LastHistory
- | MarkVision
- | MarkSmell
- | MarkSuspect
- | SettingsMenu
- | ChallengesMenu
- | PrintScreen
- | Cancel
- | Accept
- | ClearTargetIfItemClear
- | ItemClear
- | MoveXhair Vector Int
- | AimTgt
- | AimFloor
- | AimEnemy
- | AimItem
- | AimAscend Int
- | EpsIncr Bool
- | XhairUnknown
- | XhairItem
- | XhairStair Bool
- | XhairPointerFloor
- | XhairPointerEnemy
- | AimPointerFloor
- | AimPointerEnemy
- data TriggerItem = TriggerItem {}
- data TriggerTile = TriggerTile {}
Documentation
data CmdCategory Source #
Constructors
CmdMainMenu | |
CmdDashboard | |
CmdItemMenu | |
CmdMove | |
CmdItem | |
CmdAim | |
CmdMeta | |
CmdMouse | |
CmdInternal | |
CmdNoHelp | |
CmdDebug | |
CmdMinimal |
Instances
Eq CmdCategory Source # | |
Defined in Game.LambdaHack.Client.UI.HumanCmd | |
Read CmdCategory Source # | |
Defined in Game.LambdaHack.Client.UI.HumanCmd Methods readsPrec :: Int -> ReadS CmdCategory # readList :: ReadS [CmdCategory] # readPrec :: ReadPrec CmdCategory # readListPrec :: ReadPrec [CmdCategory] # | |
Show CmdCategory Source # | |
Defined in Game.LambdaHack.Client.UI.HumanCmd Methods showsPrec :: Int -> CmdCategory -> ShowS # show :: CmdCategory -> String # showList :: [CmdCategory] -> ShowS # | |
Generic CmdCategory Source # | |
Defined in Game.LambdaHack.Client.UI.HumanCmd Associated Types type Rep CmdCategory :: Type -> Type | |
NFData CmdCategory Source # | |
Defined in Game.LambdaHack.Client.UI.HumanCmd Methods rnf :: CmdCategory -> () | |
Binary CmdCategory Source # | |
Defined in Game.LambdaHack.Client.UI.HumanCmd | |
type Rep CmdCategory Source # | |
Defined in Game.LambdaHack.Client.UI.HumanCmd type Rep CmdCategory = D1 ('MetaData "CmdCategory" "Game.LambdaHack.Client.UI.HumanCmd" "LambdaHack-0.9.5.0-7wUbMHtzAj7LBcEiCWcNel" 'False) (((C1 ('MetaCons "CmdMainMenu" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CmdDashboard" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CmdItemMenu" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "CmdMove" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CmdItem" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CmdAim" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "CmdMeta" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CmdMouse" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CmdInternal" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "CmdNoHelp" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CmdDebug" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CmdMinimal" 'PrefixI 'False) (U1 :: Type -> Type))))) |
Symbolic representation of areas of the screen used to define the meaning of mouse button presses relative to where the mouse points to.
Constructors
CaMessage | |
CaMapLeader | |
CaMapParty | |
CaMap | |
CaLevelNumber | |
CaArenaName | |
CaPercentSeen | |
CaXhairDesc | |
CaSelected | |
CaCalmGauge | |
CaCalmValue | |
CaHPGauge | |
CaHPValue | |
CaLeaderDesc |
Instances
Eq CmdArea Source # | |
Ord CmdArea Source # | |
Defined in Game.LambdaHack.Client.UI.HumanCmd | |
Read CmdArea Source # | |
Show CmdArea Source # | |
Generic CmdArea Source # | |
NFData CmdArea Source # | |
Defined in Game.LambdaHack.Client.UI.HumanCmd | |
Binary CmdArea Source # | |
type Rep CmdArea Source # | |
Defined in Game.LambdaHack.Client.UI.HumanCmd type Rep CmdArea = D1 ('MetaData "CmdArea" "Game.LambdaHack.Client.UI.HumanCmd" "LambdaHack-0.9.5.0-7wUbMHtzAj7LBcEiCWcNel" 'False) (((C1 ('MetaCons "CaMessage" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CaMapLeader" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CaMapParty" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "CaMap" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CaLevelNumber" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CaArenaName" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CaPercentSeen" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "CaXhairDesc" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CaSelected" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CaCalmGauge" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "CaCalmValue" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CaHPGauge" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CaHPValue" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CaLeaderDesc" 'PrefixI 'False) (U1 :: Type -> Type))))) |
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.
data AimModeCmd Source #
Constructors
AimModeCmd | |
Fields
|
Instances
Abstract syntax of human player commands.
Constructors
Instances
Eq HumanCmd Source # | |
Ord HumanCmd Source # | |
Defined in Game.LambdaHack.Client.UI.HumanCmd | |
Read HumanCmd Source # | |
Show HumanCmd Source # | |
Generic HumanCmd Source # | |
NFData HumanCmd Source # | |
Defined in Game.LambdaHack.Client.UI.HumanCmd | |
Binary HumanCmd Source # | |
type Rep HumanCmd Source # | |
Defined in Game.LambdaHack.Client.UI.HumanCmd type Rep HumanCmd = D1 ('MetaData "HumanCmd" "Game.LambdaHack.Client.UI.HumanCmd" "LambdaHack-0.9.5.0-7wUbMHtzAj7LBcEiCWcNel" 'False) ((((((C1 ('MetaCons "Macro" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [String])) :+: C1 ('MetaCons "ByArea" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [(CmdArea, HumanCmd)]))) :+: (C1 ('MetaCons "ByAimMode" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AimModeCmd)) :+: (C1 ('MetaCons "ComposeIfLocal" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 HumanCmd) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 HumanCmd)) :+: C1 ('MetaCons "ComposeUnlessError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 HumanCmd) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 HumanCmd))))) :+: ((C1 ('MetaCons "Compose2ndLocal" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 HumanCmd) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 HumanCmd)) :+: C1 ('MetaCons "LoopOnNothing" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 HumanCmd))) :+: (C1 ('MetaCons "ExecuteIfClear" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 HumanCmd)) :+: (C1 ('MetaCons "Wait" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Wait10" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "Yell" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MoveDir" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Vector))) :+: (C1 ('MetaCons "RunDir" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Vector)) :+: (C1 ('MetaCons "RunOnceAhead" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MoveOnceToXhair" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "RunOnceToXhair" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ContinueToXhair" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MoveItem" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [CStore]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CStore)) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Part)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))) :+: (C1 ('MetaCons "Project" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Apply" 'PrefixI 'False) (U1 :: Type -> Type)))))) :+: ((((C1 ('MetaCons "AlterDir" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [TriggerTile])) :+: C1 ('MetaCons "AlterWithPointer" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [TriggerTile]))) :+: (C1 ('MetaCons "Help" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Hint" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ItemMenu" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "MainMenu" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MainMenuAutoOn" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MainMenuAutoOff" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Dashboard" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GameDifficultyIncr" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "GameWolfToggle" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GameFishToggle" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GameScenarioIncr" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "GameRestart" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GameQuit" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "GameDrop" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GameExit" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GameSave" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Tactic" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Automate" 'PrefixI 'False) (U1 :: Type -> Type))))))) :+: (((((C1 ('MetaCons "AutomateToggle" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AutomateBack" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ChooseItem" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ItemDialogMode)) :+: (C1 ('MetaCons "ChooseItemMenu" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ItemDialogMode)) :+: C1 ('MetaCons "ChooseItemProject" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [TriggerItem]))))) :+: ((C1 ('MetaCons "ChooseItemApply" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [TriggerItem])) :+: C1 ('MetaCons "PickLeader" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) :+: (C1 ('MetaCons "PickLeaderWithPointer" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MemberCycle" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MemberBack" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "SelectActor" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SelectNone" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "SelectWithPointer" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Repeat" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)) :+: C1 ('MetaCons "Record" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "AllHistory" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LastHistory" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MarkVision" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MarkSmell" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MarkSuspect" 'PrefixI 'False) (U1 :: Type -> Type)))))) :+: ((((C1 ('MetaCons "SettingsMenu" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ChallengesMenu" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PrintScreen" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Cancel" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Accept" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "ClearTargetIfItemClear" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ItemClear" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MoveXhair" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Vector) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)) :+: (C1 ('MetaCons "AimTgt" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AimFloor" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "AimEnemy" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AimItem" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "AimAscend" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)) :+: (C1 ('MetaCons "EpsIncr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)) :+: C1 ('MetaCons "XhairUnknown" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "XhairItem" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "XhairStair" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)) :+: C1 ('MetaCons "XhairPointerFloor" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "XhairPointerEnemy" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AimPointerFloor" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AimPointerEnemy" 'PrefixI 'False) (U1 :: Type -> Type)))))))) |
data TriggerItem Source #
Description of how item manipulation is triggered and communicated to the player.
Instances
data TriggerTile Source #
Description of how tile altering is triggered and communicated to the player.