Uses of Class
pile.piles.Deck

Packages that use Deck
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 Deck in card.trainer

    Methods in card.trainer with parameters of type Deck
    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 Deck in card.trainer.helper

    Methods in card.trainer.helper with parameters of type Deck
    Modifier and Type
    Method
    Description
    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 Deck in card.trainer.trainercards

    Methods in card.trainer.trainercards with parameters of type Deck
    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 Deck in game

    Fields in game declared as Deck
    Modifier and Type
    Field
    Description
    private Deck
    Player.deck
    The player's deck of cards.
    Fields in game with type parameters of type Deck
    Modifier and Type
    Field
    Description
    private static final Map<String,Deck>
    DeckBuilder.prebuiltDecks
    Maps deck name to deck object.
    Methods in game that return Deck
    Modifier and Type
    Method
    Description
    Player.getDeck()
    Returns the player's deck.
    static Deck
    DeckBuilder.getPrebuiltDeck(String deckName)
    Returns a specific prebuilt deck by its name.
    Methods in game with parameters of type Deck
    Modifier and Type
    Method
    Description
    void
    Player.setDeck(Deck deck)
    Sets the player's deck.