@Cards-TS
    Preparing search index...

    Namespace EventHandler

    A set of utility functions that are helpful when writing event handlers

    Functions

    hasCard

    Creates a validator to see if the source handler has a card they are attempting to play

    hasCards

    Creates a validator to see if the source handler has the cards they are attempting to play

    isTurn

    Creates a canRespond validator to test if it is the message source's turn

    isWaiting

    Creates a canRespond validator to test if the game is waiting on the source handler

    removeCards

    Creates a merger function to remove the cards from the source handler's hand

    removeWaiting

    Creates a merger function to remove the source handler from waiting

    setTrickPlayedCard

    Creates a merger function to set the played trick card

    validate

    Creates a simple validator using an error message