Class PhasePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class PhasePanel extends JPanel
This JPanel contains both game panel and side panel.
Author:
Molly
See Also:
  • Constructor Details

    • PhasePanel

      public PhasePanel(JPanel gamePanel, JPanel sidePanel)
      Panel to hold game square next to side panel.
      Parameters:
      gamePanel - the panel in the main square
      sidePanel - the panel on the side
  • Method Details

    • setUpPanels

      public void setUpPanels()
      Sets up panel sizes and adds them to panel.
    • updateTime

      public void updateTime(int time)
      If side-panel has timer, update timer.
      Parameters:
      time - time to set panel to
    • stopSound

      public void stopSound()
      Stops sound in game window.
    • getAllComponents

      public List<JComponent> getAllComponents()
      Get all components in window.
      Returns:
      list of components