Class Bill

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

public class Bill extends TrainerCard
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 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

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