Class DiscardCardScreen


public class DiscardCardScreen extends CardSelectScreen
The DiscardCardScreen class represents a screen where the user selects cards to discard. It extends CardSelectScreen and includes commands for making a selection. The user can select up to a predefined limit of cards (default is 5).
See Also:
  • Constructor Details

    • DiscardCardScreen

      public DiscardCardScreen() throws JavatroException
      Constructs a DiscardCardScreen and initializes the selection command. The selection limit is set to 5, meaning a maximum of 5 cards can be selected to discard.
      Throws:
      JavatroException - if an error occurs during initialization.
  • Method Details

    • displayScreen

      public void displayScreen()
      Displays the current cards in the user's holding hand for selection. This method overrides the parent class implementation to provide specific behavior for discarding cards.
      Specified by:
      displayScreen in class CardSelectScreen