Package card.trainer.trainercards
Class ProfessorOak
java.lang.Object
card.Card
card.trainer.TrainerCard
card.trainer.trainercards.ProfessorOak
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 Summary
ConstructorsConstructorDescriptionConstructor to initialize the "Professor Oak" trainer card with its name and description. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Methods inherited from class card.trainer.TrainerCard
getDescription, useEffect
-
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
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 classTrainerCard
- Parameters:
deck
- The player's deck.hand
- The player's hand.discardPile
- The player's discard pile.
-