LambdaHack-0.11.0.1: A game engine library for tactical squad ASCII roguelike dungeon crawlers

Safe Haskell | None
Language | Haskell2010

Game.LambdaHack.Common.ReqFailure

Contents

- Internal operations

Description

Possible causes of failure of request.

Synopsis

- data ReqFailure
  - = MoveUnskilled
  - | MoveUnskilledAsleep
  - | MoveNothing
  - | MeleeUnskilled
  - | MeleeSelf
  - | MeleeDistant
  - | MeleeNotWeapon
  - | DisplaceUnskilled
  - | DisplaceDistant
  - | DisplaceAccess
  - | DisplaceMultiple
  - | DisplaceDying
  - | DisplaceBraced
  - | DisplaceImmobile
  - | DisplaceSupported
  - | AlterUnskilled
  - | AlterUnwalked
  - | AlterDistant
  - | AlterBlockActor
  - | AlterBlockItem
  - | AlterNothing
  - | CloseDistant
  - | CloseClosed
  - | CloseNothing
  - | CloseNonClosable
  - | WaitUnskilled
  - | YellUnskilled
  - | MoveItemUnskilled
  - | EqpOverfull
  - | EqpStackFull
  - | ApplyUnskilled
  - | ApplyFood
  - | ApplyRead
  - | ApplyPeriodic
  - | ApplyOutOfReach
  - | ApplyCharging
  - | ApplyNoEffects
  - | ItemNothing
  - | ItemNotCalm
  - | ItemOverStash
  - | NotCalmPrecious
  - | ProjectUnskilled
  - | ProjectAimOnself
  - | ProjectBlockTerrain
  - | ProjectBlockActor
  - | ProjectLobable
  - | ProjectOutOfReach
  - | ProjectFinderKeeper
  - | 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 :: RuleContent -> Time -> Int -> Bool -> Maybe CStore -> ItemFull -> ItemQuant -> Either ReqFailure Bool

# Documentation

data ReqFailure Source #

Possible causes of failure of request.

Constructors

MoveUnskilled |
MoveUnskilledAsleep |
MoveNothing |
MeleeUnskilled |
MeleeSelf |
MeleeDistant |
MeleeNotWeapon |
DisplaceUnskilled |
DisplaceDistant |
DisplaceAccess |
DisplaceMultiple |
DisplaceDying |
DisplaceBraced |
DisplaceImmobile |
DisplaceSupported |
AlterUnskilled |
AlterUnwalked |
AlterDistant |
AlterBlockActor |
AlterBlockItem |
AlterNothing |
CloseDistant |
CloseClosed |
CloseNothing |
CloseNonClosable |
WaitUnskilled |
YellUnskilled |
MoveItemUnskilled |
EqpOverfull |
EqpStackFull |
ApplyUnskilled |
ApplyFood |
ApplyRead |
ApplyPeriodic |
ApplyOutOfReach |
ApplyCharging |
ApplyNoEffects |
ItemNothing |
ItemNotCalm |
ItemOverStash |
NotCalmPrecious |
ProjectUnskilled |
ProjectAimOnself |
ProjectBlockTerrain |
ProjectBlockActor |
ProjectLobable |
ProjectOutOfReach |
ProjectFinderKeeper |
NoChangeDunLeader |

#### Instances

Instances details

Show ReqFailure Source # |
Instance details Defined in Game.LambdaHack.Common.ReqFailure Methods showsPrec :: Int -> ReqFailure -> ShowS Source # show :: ReqFailure -> String Source # showList :: [ReqFailure] -> ShowS Source #
Eq ReqFailure Source # |
Instance details Defined in Game.LambdaHack.Common.ReqFailure Methods (==) :: ReqFailure -> ReqFailure -> Bool Source # (/=) :: ReqFailure -> ReqFailure -> Bool Source #

impossibleReqFailure :: ReqFailure -> Bool Source #

showReqFailure :: ReqFailure -> Text Source #

permittedPrecious :: Bool -> Bool -> ItemFull -> Either ReqFailure Bool Source #

permittedProject :: Bool -> Int -> Bool -> ItemFull -> Either ReqFailure Bool Source #

permittedProjectAI :: Int -> Bool -> ItemFull -> Bool Source #

permittedApply :: RuleContent -> Time -> Int -> Bool -> Maybe CStore -> ItemFull -> ItemQuant -> Either ReqFailure Bool Source #

# Internal operations