Class PuzzleScreen

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class PuzzleScreen extends Screen
The screen that displays the puzzle, that the user interacts with. This screen also has the sidebar, which displays the puzzle number, stars remaining, etc.
See Also:
  • Constructor Details

    • PuzzleScreen

      public PuzzleScreen()
  • Method Details

    • populateComponents

      protected void populateComponents(Container contentPane, SpringLayout layout)
      Description copied from class: Screen
      Populates the components of the screen.
      Specified by:
      populateComponents in class Screen
      Parameters:
      contentPane - The content pane of the screen (this)
      layout - The layout of the screen.
    • setPuzzle

      public void setPuzzle(UpdatePuzzleLevelDTO puzzle)
      Sets the puzzle to display on the screen.
      Parameters:
      puzzle - The puzzle to display. TODO: Finish this method once we have real data!
    • getPuzzleComponent

      protected PuzzleComponent getPuzzleComponent()
    • exitPuzzle

      protected void exitPuzzle()