Package card.trainer.helper
Class TrainerEffect
java.lang.Object
card.trainer.helper.TrainerEffect
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
discardHand
(Hand hand, DiscardPile discardPile) Discards all cards in the player's hand and adds them to the discard pile.static void
Draws a specified number of cards from the deck and adds them to the player's hand.
-
Constructor Details
-
TrainerEffect
public TrainerEffect()
-
-
Method Details
-
drawCards
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
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.
-