Safe Haskell | None |
---|---|
Language | Haskell2010 |
Game.LambdaHack.Common.ReqFailure
Contents
Description
Possible causes of failure of request.
Synopsis
- data ReqFailure
- = MoveUnskilled
- | MoveNothing
- | MeleeUnskilled
- | MeleeSelf
- | MeleeDistant
- | DisplaceUnskilled
- | DisplaceDistant
- | DisplaceAccess
- | DisplaceMultiple
- | DisplaceDying
- | DisplaceBraced
- | DisplaceImmobile
- | DisplaceSupported
- | AlterUnskilled
- | AlterUnwalked
- | AlterDistant
- | AlterBlockActor
- | AlterBlockItem
- | AlterNothing
- | WaitUnskilled
- | YellUnskilled
- | MoveItemUnskilled
- | EqpOverfull
- | EqpStackFull
- | ApplyUnskilled
- | ApplyFood
- | ApplyRead
- | ApplyPeriodic
- | ApplyOutOfReach
- | ApplyCharging
- | ApplyNoEffects
- | ItemNothing
- | ItemNotCalm
- | NotCalmPrecious
- | ProjectUnskilled
- | ProjectAimOnself
- | ProjectBlockTerrain
- | ProjectBlockActor
- | ProjectLobable
- | ProjectOutOfReach
- | TriggerNothing
- | NoChangeDunLeader
- impossibleReqFailure :: ReqFailure -> Bool
- showReqFailure :: ReqFailure -> Text
- permittedPrecious :: Bool -> Bool -> ItemFull -> Either ReqFailure Bool
- permittedProject :: Bool -> Int -> Bool -> ItemFull -> Either ReqFailure Bool
- permittedProjectAI :: Int -> Bool -> ItemFull -> Bool
- permittedApply :: Time -> Int -> Bool -> ItemFull -> ItemQuant -> Either ReqFailure Bool
Documentation
data ReqFailure Source #
Possible causes of failure of request.
Constructors
Instances
Eq ReqFailure Source # | |
Defined in Game.LambdaHack.Common.ReqFailure | |
Show ReqFailure Source # | |
Defined in Game.LambdaHack.Common.ReqFailure Methods showsPrec :: Int -> ReqFailure -> ShowS # show :: ReqFailure -> String # showList :: [ReqFailure] -> ShowS # | |
Generic ReqFailure Source # | |
Defined in Game.LambdaHack.Common.ReqFailure Associated Types type Rep ReqFailure :: Type -> Type | |
Binary ReqFailure Source # | |
Defined in Game.LambdaHack.Common.ReqFailure | |
type Rep ReqFailure Source # | |
Defined in Game.LambdaHack.Common.ReqFailure type Rep ReqFailure = D1 ('MetaData "ReqFailure" "Game.LambdaHack.Common.ReqFailure" "LambdaHack-0.9.5.0-IfKZ3m76YlCDhiCPrOePIo" 'False) (((((C1 ('MetaCons "MoveUnskilled" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MoveNothing" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MeleeUnskilled" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MeleeSelf" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MeleeDistant" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "DisplaceUnskilled" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DisplaceDistant" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "DisplaceAccess" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "DisplaceMultiple" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DisplaceDying" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "DisplaceBraced" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DisplaceImmobile" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "DisplaceSupported" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AlterUnskilled" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AlterUnwalked" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "AlterDistant" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AlterBlockActor" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AlterBlockItem" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "AlterNothing" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "WaitUnskilled" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "YellUnskilled" 'PrefixI 'False) (U1 :: Type -> Type)))))) :+: ((((C1 ('MetaCons "MoveItemUnskilled" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EqpOverfull" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "EqpStackFull" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ApplyUnskilled" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ApplyFood" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "ApplyRead" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ApplyPeriodic" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ApplyOutOfReach" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ApplyCharging" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ApplyNoEffects" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "ItemNothing" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ItemNotCalm" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "NotCalmPrecious" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ProjectUnskilled" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ProjectAimOnself" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "ProjectBlockTerrain" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ProjectBlockActor" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ProjectLobable" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "ProjectOutOfReach" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "TriggerNothing" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NoChangeDunLeader" 'PrefixI 'False) (U1 :: Type -> Type))))))) |
showReqFailure :: ReqFailure -> Text Source #
permittedPrecious :: Bool -> Bool -> ItemFull -> Either ReqFailure Bool Source #
permittedProject :: Bool -> Int -> Bool -> ItemFull -> Either ReqFailure Bool Source #