Class ProfessorOak

java.lang.Object
card.Card
card.trainer.TrainerCard
card.trainer.trainercards.ProfessorOak

public class ProfessorOak extends TrainerCard
This class represents the Trainer card "Professor Oak" in the Pokémon Trading Card Game. It extends the TrainerCard class and provides an overridden method to use the unique effect of this card. The effect of this card is to discard the player's hand and then draw 7 cards from the player's deck.
Version:
1.0
Author:
Tyler Mong
  • Constructor Details

    • ProfessorOak

      public ProfessorOak()
      Constructor to initialize the "Professor Oak" trainer card with its name and description. This constructor calls the superclass constructor to set the name and description of the card.
  • Method Details

    • useEffect

      public void 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. Prints a message indicating the effect being used and calls the TrainerEffect class to perform the actions.
      Specified by:
      useEffect in class TrainerCard
      Parameters:
      deck - The player's deck.
      hand - The player's hand.
      discardPile - The player's discard pile.