Package pile.piles

Class Bench

java.lang.Object
pile.Pile
pile.piles.Bench

public class Bench extends Pile
Represents a bench in the Pokémon Trading Card Game, where the player's benched Pokémon are placed. The bench can hold a maximum of 5 Pokémon cards. This class extends the Pile class and provides a method for getting the maximum bench size.
Version:
1.0
Author:
Tyler Mong
  • Field Details

  • Constructor Details

    • Bench

      public Bench()
      Constructor for the Bench class. Initializes the bench pile for the player.
  • Method Details

    • getMaxSize

      public int getMaxSize()
      Returns the maximum number of Pokémon cards that can be placed on the bench.
      Returns:
      The maximum size of the bench, which is a constant value of 5.