Safe Haskell | None |
---|---|
Language | Haskell2010 |
Possible causes of failure of request.
Synopsis
- data ReqFailure
- = MoveUnskilled
- | MoveNothing
- | MeleeUnskilled
- | MeleeSelf
- | MeleeDistant
- | DisplaceUnskilled
- | DisplaceDistant
- | DisplaceAccess
- | DisplaceProjectiles
- | DisplaceDying
- | DisplaceBraced
- | DisplaceImmobile
- | DisplaceSupported
- | AlterUnskilled
- | AlterUnwalked
- | AlterDistant
- | AlterBlockActor
- | AlterBlockItem
- | AlterNothing
- | WaitUnskilled
- | MoveItemUnskilled
- | EqpOverfull
- | EqpStackFull
- | ApplyUnskilled
- | ApplyRead
- | 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.
Instances
Eq ReqFailure Source # | |
Defined in Game.LambdaHack.Common.ReqFailure (==) :: ReqFailure -> ReqFailure -> Bool # (/=) :: ReqFailure -> ReqFailure -> Bool # | |
Show ReqFailure Source # | |
Defined in Game.LambdaHack.Common.ReqFailure showsPrec :: Int -> ReqFailure -> ShowS # show :: ReqFailure -> String # showList :: [ReqFailure] -> ShowS # | |
Generic ReqFailure Source # | |
Defined in Game.LambdaHack.Common.ReqFailure type Rep ReqFailure :: * -> * # from :: ReqFailure -> Rep ReqFailure x # to :: Rep ReqFailure x -> ReqFailure # | |
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.8.3.0-5WMRdylEY9jFLqYScFUab7" False) (((((C1 (MetaCons "MoveUnskilled" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "MoveNothing" PrefixI False) (U1 :: * -> *)) :+: (C1 (MetaCons "MeleeUnskilled" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "MeleeSelf" PrefixI False) (U1 :: * -> *))) :+: ((C1 (MetaCons "MeleeDistant" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "DisplaceUnskilled" PrefixI False) (U1 :: * -> *)) :+: (C1 (MetaCons "DisplaceDistant" PrefixI False) (U1 :: * -> *) :+: (C1 (MetaCons "DisplaceAccess" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "DisplaceProjectiles" PrefixI False) (U1 :: * -> *))))) :+: (((C1 (MetaCons "DisplaceDying" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "DisplaceBraced" PrefixI False) (U1 :: * -> *)) :+: (C1 (MetaCons "DisplaceImmobile" PrefixI False) (U1 :: * -> *) :+: (C1 (MetaCons "DisplaceSupported" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "AlterUnskilled" PrefixI False) (U1 :: * -> *)))) :+: ((C1 (MetaCons "AlterUnwalked" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "AlterDistant" PrefixI False) (U1 :: * -> *)) :+: (C1 (MetaCons "AlterBlockActor" PrefixI False) (U1 :: * -> *) :+: (C1 (MetaCons "AlterBlockItem" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "AlterNothing" PrefixI False) (U1 :: * -> *)))))) :+: ((((C1 (MetaCons "WaitUnskilled" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "MoveItemUnskilled" PrefixI False) (U1 :: * -> *)) :+: (C1 (MetaCons "EqpOverfull" PrefixI False) (U1 :: * -> *) :+: (C1 (MetaCons "EqpStackFull" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "ApplyUnskilled" PrefixI False) (U1 :: * -> *)))) :+: ((C1 (MetaCons "ApplyRead" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "ApplyOutOfReach" PrefixI False) (U1 :: * -> *)) :+: (C1 (MetaCons "ApplyCharging" PrefixI False) (U1 :: * -> *) :+: (C1 (MetaCons "ApplyNoEffects" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "ItemNothing" PrefixI False) (U1 :: * -> *))))) :+: (((C1 (MetaCons "ItemNotCalm" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "NotCalmPrecious" PrefixI False) (U1 :: * -> *)) :+: (C1 (MetaCons "ProjectUnskilled" PrefixI False) (U1 :: * -> *) :+: (C1 (MetaCons "ProjectAimOnself" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "ProjectBlockTerrain" PrefixI False) (U1 :: * -> *)))) :+: ((C1 (MetaCons "ProjectBlockActor" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "ProjectLobable" PrefixI False) (U1 :: * -> *)) :+: (C1 (MetaCons "ProjectOutOfReach" PrefixI False) (U1 :: * -> *) :+: (C1 (MetaCons "TriggerNothing" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "NoChangeDunLeader" PrefixI False) (U1 :: * -> *))))))) |
showReqFailure :: ReqFailure -> Text Source #
permittedPrecious :: Bool -> Bool -> ItemFull -> Either ReqFailure Bool Source #
permittedProject :: Bool -> Int -> Bool -> ItemFull -> Either ReqFailure Bool Source #