Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
applyMatcherWithDesc :: CardMatcher -> Card -> Either String () Source #
hasAttribute :: CardAttribute -> Card -> Bool Source #
requireCard :: CardName -> CardMatcher -> GameMonad Card Source #
matchDamage :: Int -> CardMatcher Source #
matchLoyalty :: Int -> CardMatcher Source #
matchAttributes :: [CardAttribute] -> CardMatcher Source #
matchName :: CardName -> CardMatcher Source #
matchController :: Player -> CardMatcher Source #
matchLesserPower :: Int -> CardMatcher Source #
matchToughness :: Int -> CardMatcher Source #
matchOr :: CardMatcher -> CardMatcher -> CardMatcher Source #
invert :: CardMatcher -> CardMatcher Source #
labelMatch :: String -> CardMatcher -> CardMatcher Source #
applyMatcher :: CardMatcher -> Card -> Bool Source #
loseAttribute :: CardAttribute -> CardName -> ExceptT String (ReaderT Env (StateT Board (WriterT [Step] Identity))) () Source #
removeAttribute :: CardAttribute -> Card -> Card Source #
gainAttribute :: CardAttribute -> CardName -> ExceptT String (ReaderT Env (StateT Board (WriterT [Step] Identity))) () Source #
setAttribute :: CardAttribute -> Card -> Card Source #