Class TrainerEffect

java.lang.Object
card.trainer.helper.TrainerEffect

public class TrainerEffect extends Object
This class provides helper methods for Trainer cards in the Pokémon Trading Card Game. It contains methods to draw cards from the deck and discard the player's hand to the discard pile.
Version:
1.0
Author:
Tyler Mong
  • Constructor Details

    • TrainerEffect

      public TrainerEffect()
  • Method Details

    • drawCards

      public static void drawCards(Deck deck, Hand hand, int numCards)
      Draws a specified number of cards from the deck and adds them to the player's hand.
      Parameters:
      deck - The player's deck.
      hand - The player's hand.
      numCards - The number of cards to draw.
    • discardHand

      public static void discardHand(Hand hand, DiscardPile discardPile)
      Discards all cards in the player's hand and adds them to the discard pile.
      Parameters:
      hand - The player's hand.
      discardPile - The player's discard pile.