Class ViewTUIMatch

java.lang.Object
it.polimi.ingsw.am13.client.view.tui.ViewTUIMatch

public class ViewTUIMatch extends Object
This class handles the TUI during the match
  • Field Details

    • view

      private final ViewTUI view
    • gameState

      private final GameState gameState
    • thisPlayer

      private final PlayerLobby thisPlayer
    • displayPlayer

      private PlayerLobby displayPlayer
    • flowCardPlaced

      private boolean flowCardPlaced
    • logs

      private LogTUI logs
    • showLegend

      private boolean showLegend
      Flag indicating if the legend is currently being printed. The default value is true
    • itemForLegend

      private MenuItem itemForLegend
      Item that must be shown to enable or disable the print of the legend
  • Constructor Details

  • Method Details

    • setShowLegend

      public void setShowLegend(boolean showLegend)
      Setter for the flag indicating whether to print the legend
      Parameters:
      showLegend - True if the legend must be printed, false otherwise
    • setFlowCardPlaced

      public void setFlowCardPlaced(boolean flowCardPlaced)
    • setDisplayPlayer

      public void setDisplayPlayer(PlayerLobby displayPlayer)
    • setDisplayPlayer

      public void setDisplayPlayer(String nick) throws InvalidParameterException
      Throws:
      InvalidParameterException
    • setLogs

      public void setLogs(LogTUI logs)
    • printMatch

      public void printMatch()
    • sectionPlayers

      private String sectionPlayers()
    • sectionLegend

      private String sectionLegend()
    • sectionField

      private String sectionField()
    • sectionCards

      private String sectionCards()
    • sectionLogs

      private String sectionLogs()
    • sectionCardsThisPlayer

      private String sectionCardsThisPlayer()
    • sectionCardsOpponentPlayer

      private String sectionCardsOpponentPlayer()