Class CloudPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class CloudPanel extends JPanel
Class used for printing all game's clouds and their students. It also permits to end user's turn
See Also:
  • Field Details

    • guiSocketListener

      private final GUISocketListener guiSocketListener
      Contains GuiReader's information necessary to record user's requests during his turn
  • Constructor Details

    • CloudPanel

      public CloudPanel(List<Cloud> clouds, PlayerBoard currentPlayer, GUISocketListener guiSocketListener, SocketWrapper sw)
      Create a new JPanel and draw all clouds (and their students)
      Parameters:
      clouds - clouds from model that needs to be drawn
      currentPlayer - current Player's playerBoard
      guiSocketListener - guiReader necessary for checking and saving actions requested by user
      sw - socketWrapper to send messages to Server