Class GameScreen

java.lang.Object
javatro.display.screens.Screen
javatro.display.screens.GameScreen
All Implemented Interfaces:
PropertyChangeListener, EventListener

public class GameScreen extends Screen implements PropertyChangeListener
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.

  • Constructor Details

    • GameScreen

      public GameScreen() throws JavatroException
      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:
      displayScreen in class Screen
    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      Handles property change events to update game screen information.
      Specified by:
      propertyChange in interface PropertyChangeListener
      Parameters:
      evt - the property change event containing the updated property name and value.