LambdaHack-0.5.0.0: A game engine library for roguelike dungeon crawlers

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Client.UI.HumanCmd

Description

Abstract syntax human player commands.

Synopsis

Documentation

data CmdCategory Source #

Instances

Eq CmdCategory Source # 
Read CmdCategory Source # 
Show CmdCategory Source # 
Generic CmdCategory Source # 

Associated Types

type Rep CmdCategory :: * -> * #

NFData CmdCategory Source # 

Methods

rnf :: CmdCategory -> () #

type Rep CmdCategory Source # 
type Rep CmdCategory = D1 (MetaData "CmdCategory" "Game.LambdaHack.Client.UI.HumanCmd" "LambdaHack-0.5.0.0-ACXnG5rBgo11km4N5iGJGN" False) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "CmdMenu" PrefixI False) U1) (C1 (MetaCons "CmdMove" PrefixI False) U1)) ((:+:) (C1 (MetaCons "CmdItem" PrefixI False) U1) ((:+:) (C1 (MetaCons "CmdTgt" PrefixI False) U1) (C1 (MetaCons "CmdAuto" PrefixI False) U1)))) ((:+:) ((:+:) (C1 (MetaCons "CmdMeta" PrefixI False) U1) (C1 (MetaCons "CmdMouse" PrefixI False) U1)) ((:+:) (C1 (MetaCons "CmdInternal" PrefixI False) U1) ((:+:) (C1 (MetaCons "CmdDebug" PrefixI False) U1) (C1 (MetaCons "CmdMinimal" PrefixI False) U1)))))

data HumanCmd Source #

Abstract syntax of player commands.

Instances

Eq HumanCmd Source # 
Ord HumanCmd Source # 
Read HumanCmd Source # 
Show HumanCmd Source # 
Generic HumanCmd Source # 

Associated Types

type Rep HumanCmd :: * -> * #

Methods

from :: HumanCmd -> Rep HumanCmd x #

to :: Rep HumanCmd x -> HumanCmd #

NFData HumanCmd Source # 

Methods

rnf :: HumanCmd -> () #

type Rep HumanCmd Source # 
type Rep HumanCmd = D1 (MetaData "HumanCmd" "Game.LambdaHack.Client.UI.HumanCmd" "LambdaHack-0.5.0.0-ACXnG5rBgo11km4N5iGJGN" False) ((:+:) ((:+:) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "Move" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Vector))) ((:+:) (C1 (MetaCons "Run" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Vector))) (C1 (MetaCons "Wait" PrefixI False) U1))) ((:+:) (C1 (MetaCons "MoveItem" PrefixI False) ((:*:) ((:*:) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [CStore])) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 CStore))) ((:*:) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Part))) ((:*:) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Part)) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)))))) ((:+:) (C1 (MetaCons "DescribeItem" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ItemDialogMode))) (C1 (MetaCons "Project" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Trigger])))))) ((:+:) ((:+:) (C1 (MetaCons "Apply" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Trigger]))) ((:+:) (C1 (MetaCons "AlterDir" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Trigger]))) (C1 (MetaCons "TriggerTile" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Trigger]))))) ((:+:) (C1 (MetaCons "RunOnceAhead" PrefixI False) U1) ((:+:) (C1 (MetaCons "MoveOnceToCursor" PrefixI False) U1) (C1 (MetaCons "RunOnceToCursor" PrefixI False) U1))))) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "ContinueToCursor" PrefixI False) U1) ((:+:) (C1 (MetaCons "GameRestart" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 (GroupName ModeKind)))) (C1 (MetaCons "GameExit" PrefixI False) U1))) ((:+:) (C1 (MetaCons "GameSave" PrefixI False) U1) ((:+:) (C1 (MetaCons "Tactic" PrefixI False) U1) (C1 (MetaCons "Automate" PrefixI False) U1)))) ((:+:) ((:+:) (C1 (MetaCons "GameDifficultyCycle" PrefixI False) U1) ((:+:) (C1 (MetaCons "PickLeader" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))) (C1 (MetaCons "MemberCycle" PrefixI False) U1))) ((:+:) ((:+:) (C1 (MetaCons "MemberBack" PrefixI False) U1) (C1 (MetaCons "SelectActor" PrefixI False) U1)) ((:+:) (C1 (MetaCons "SelectNone" PrefixI False) U1) (C1 (MetaCons "Clear" PrefixI False) U1)))))) ((:+:) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "StopIfTgtMode" PrefixI False) U1) ((:+:) (C1 (MetaCons "SelectWithPointer" PrefixI False) U1) (C1 (MetaCons "Repeat" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))) ((:+:) (C1 (MetaCons "Record" PrefixI False) U1) ((:+:) (C1 (MetaCons "History" PrefixI False) U1) (C1 (MetaCons "MarkVision" PrefixI False) U1)))) ((:+:) ((:+:) (C1 (MetaCons "MarkSmell" PrefixI False) U1) ((:+:) (C1 (MetaCons "MarkSuspect" PrefixI False) U1) (C1 (MetaCons "Help" PrefixI False) U1))) ((:+:) ((:+:) (C1 (MetaCons "MainMenu" PrefixI False) U1) (C1 (MetaCons "Macro" PrefixI False) ((:*:) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Text)) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [String]))))) ((:+:) (C1 (MetaCons "MoveCursor" PrefixI False) ((:*:) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Vector)) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))) (C1 (MetaCons "TgtFloor" PrefixI False) U1))))) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "TgtEnemy" PrefixI False) U1) ((:+:) (C1 (MetaCons "TgtAscend" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))) (C1 (MetaCons "EpsIncr" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool))))) ((:+:) (C1 (MetaCons "TgtClear" PrefixI False) U1) ((:+:) (C1 (MetaCons "CursorUnknown" PrefixI False) U1) (C1 (MetaCons "CursorItem" PrefixI False) U1)))) ((:+:) ((:+:) (C1 (MetaCons "CursorStair" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool))) ((:+:) (C1 (MetaCons "Cancel" PrefixI False) U1) (C1 (MetaCons "Accept" PrefixI False) U1))) ((:+:) ((:+:) (C1 (MetaCons "CursorPointerFloor" PrefixI False) U1) (C1 (MetaCons "CursorPointerEnemy" PrefixI False) U1)) ((:+:) (C1 (MetaCons "TgtPointerFloor" PrefixI False) U1) (C1 (MetaCons "TgtPointerEnemy" PrefixI False) U1)))))))

data Trigger Source #

Constructors

ApplyItem 

Fields

AlterFeature 

Fields

TriggerFeature 

Fields

Instances

Eq Trigger Source # 

Methods

(==) :: Trigger -> Trigger -> Bool #

(/=) :: Trigger -> Trigger -> Bool #

Ord Trigger Source # 
Read Trigger Source # 
Show Trigger Source # 
Generic Trigger Source # 

Associated Types

type Rep Trigger :: * -> * #

Methods

from :: Trigger -> Rep Trigger x #

to :: Rep Trigger x -> Trigger #

NFData Trigger Source # 

Methods

rnf :: Trigger -> () #

type Rep Trigger Source # 

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.

cmdDescription :: HumanCmd -> Text Source #

Description of player commands.