Package pile.piles
Class Bench
java.lang.Object
pile.Pile
pile.piles.Bench
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the maximum number of Pokémon cards that can be placed on the bench.Methods inherited from class pile.Pile
addCard, display, drawCard, getCardAtIndex, getCards, getSize, isEmpty, removeCard, secondaryDisplay, shuffle
-
Field Details
-
MAX_SIZE
private static final int MAX_SIZE- See Also:
-
-
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.
-