Package card.trainer.trainercards
Class Bill
java.lang.Object
card.Card
card.trainer.TrainerCard
card.trainer.trainercards.Bill
This class represents the Trainer card "Bill" 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 draw 2 cards from the player's deck.
- Version:
- 1.0
- Author:
- Tyler Mong
-
Constructor Summary
ConstructorsConstructorDescriptionBill()
Constructor to initialize the "Bill" trainer card with its name and description. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Methods inherited from class card.trainer.TrainerCard
getDescription, useEffect
-
Constructor Details
-
Bill
public Bill()Constructor to initialize the "Bill" 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 "Bill" trainer card, which is to draw 2 cards from the player's deck. Prints a message indicating the effect being used and calls the TrainerEffect class to perform the action.- Specified by:
useEffect
in classTrainerCard
- Parameters:
deck
- The player's deck.hand
- The player's hand.discardPile
- The player's discard pile (not used in this effect).
-