Package javatro.display.screens
Class PlayCardScreen
java.lang.Object
javatro.display.screens.Screen
javatro.display.screens.CardSelectScreen
javatro.display.screens.PlayCardScreen
The
PlayCardScreen class represents a screen where the user selects cards to play. It
extends CardSelectScreen and allows selecting up to a predefined limit of cards (default
is 5).- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javatro.display.screens.CardSelectScreen
CardSelectScreen.SortOrder -
Field Summary
Fields inherited from class javatro.display.screens.Screen
commandMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDisplays the current cards in the user's holding hand for selection.Methods inherited from class javatro.display.screens.CardSelectScreen
displayHoldingHand, getCardIndicesTitle, updateHoldingHandMethods inherited from class javatro.display.screens.Screen
clearCommandMap, displayOptions, getCommand, getCommandMap, getOptionsSize, getOutput
-
Constructor Details
-
PlayCardScreen
Constructs aPlayCardScreenand sets the selection limit. The user can select up to 5 cards to play, and the selection command is initialized.- 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 playing cards.- Specified by:
displayScreenin classCardSelectScreen
-