Package game

Class Player

java.lang.Object
game.Player

public class Player extends Object
This class represents a player in the Pokémon Trading Card Game. It contains the player's name, deck, hand, active Pokémon, benched Pokémon, prize cards, and discard pile. It provides methods to access and modify these attributes.
Version:
1.0
Author:
Tyler Mong
  • Field Details

    • name

      private String name
      The name of the player.
    • deck

      private Deck deck
      The player's deck of cards.
    • hand

      private Hand hand
      The player's hand of cards.
    • active

      private Active active
      The player's active Pokémon.
    • bench

      private Bench bench
      The player's benched Pokémon.
    • prizeCards

      private Prize prizeCards
      The player's prize cards.
    • discardPile

      private DiscardPile discardPile
      The player's discard pile.
  • Constructor Details

    • Player

      public Player(String name)
      Constructor to initialize a player with a name and card piles.
      Parameters:
      name - The name of the player.
  • Method Details

    • getName

      public String getName()
      Returns the player's name.
      Returns:
      The player's name.
    • getDeck

      public Deck getDeck()
      Returns the player's deck.
      Returns:
      The player's deck.
    • setDeck

      public void setDeck(Deck deck)
      Sets the player's deck.
      Parameters:
      deck - The deck to set for the player.
    • getHand

      public Hand getHand()
      Returns the player's hand.
      Returns:
      The player's hand.
    • getPrizeCards

      public Prize getPrizeCards()
      Returns the player's prize cards.
      Returns:
      The player's prize cards.
    • getDiscardPile

      public DiscardPile getDiscardPile()
      Returns the player's discard pile.
      Returns:
      The player's discard pile.
    • getActive

      public Active getActive()
      Returns the player's active Pokémon.
      Returns:
      The player's active Pokémon.
    • getBench

      public Bench getBench()
      Returns the player's benched Pokémon.
      Returns:
      The player's benched Pokémon.