Package javatro.display.screens
Class GameScreen
java.lang.Object
javatro.display.screens.Screen
javatro.display.screens.GameScreen
- All Implemented Interfaces:
PropertyChangeListener,EventListener
GameScreen class represents the game menu screen in the Javatro application. It displays game
information such as round details, scores, deck view, and options, and listens to property
changes to update the display accordingly.
This class extends Screen and implements PropertyChangeListener to
react to changes in game state.
-
Field Summary
Fields inherited from class javatro.display.screens.Screen
commandMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDisplays the game screen with current game information such as scores, round details, deck view, and card art.voidHandles property change events to update game screen information.Methods inherited from class javatro.display.screens.Screen
clearCommandMap, displayOptions, getCommand, getCommandMap, getOptionsSize, getOutput
-
Constructor Details
-
GameScreen
Constructs a new GameScreen with predefined command options.- Throws:
JavatroException- if there is an error initializing the screen.
-
-
Method Details
-
displayScreen
public void displayScreen()Displays the game screen with current game information such as scores, round details, deck view, and card art.- Specified by:
displayScreenin classScreen
-
propertyChange
Handles property change events to update game screen information.- Specified by:
propertyChangein interfacePropertyChangeListener- Parameters:
evt- the property change event containing the updated property name and value.
-