Uses of Class
pile.piles.Hand

Packages that use Hand
Package
Description
This package contains classes related to Trainer cards in the Pokémon Trading Card Game (TCG) emulation.
This package contains the helper class for the trainer cards.
This package contains all the trainer cards in the game.
This package contains the main game logic for the Pokémon Trading Card Game (TCG) emulation.
  • Uses of Hand in card.trainer

    Methods in card.trainer with parameters of type Hand
    Modifier and Type
    Method
    Description
    void
    TrainerCard.useEffect(Deck deck, Hand hand)
    Overloaded method to use the effect of the trainer card without a discard pile.
    abstract void
    TrainerCard.useEffect(Deck deck, Hand hand, DiscardPile discardPile)
    Abstract method to use the effect of the trainer card.
  • Uses of Hand in card.trainer.helper

    Methods in card.trainer.helper with parameters of type Hand
    Modifier and Type
    Method
    Description
    static void
    TrainerEffect.discardHand(Hand hand, DiscardPile discardPile)
    Discards all cards in the player's hand and adds them to the discard pile.
    static void
    TrainerEffect.drawCards(Deck deck, Hand hand, int numCards)
    Draws a specified number of cards from the deck and adds them to the player's hand.
  • Uses of Hand in card.trainer.trainercards

    Methods in card.trainer.trainercards with parameters of type Hand
    Modifier and Type
    Method
    Description
    void
    Bill.useEffect(Deck deck, Hand hand, DiscardPile discardPile)
    Uses the effect of the "Bill" trainer card, which is to draw 2 cards from the player's deck.
    void
    ProfessorOak.useEffect(Deck deck, Hand hand, DiscardPile discardPile)
    Uses the effect of the "Professor Oak" trainer card, which is to discard the player's hand and then draw 7 cards from the player's deck.
  • Uses of Hand in game

    Fields in game declared as Hand
    Modifier and Type
    Field
    Description
    private Hand
    Player.hand
    The player's hand of cards.
    Methods in game that return Hand
    Modifier and Type
    Method
    Description
    Player.getHand()
    Returns the player's hand.