java.lang.Object
it.polimi.ingsw.am13.client.view.tui.ViewTUIMatch
This class handles the TUI during the match
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PlayerLobby
private boolean
private final GameState
private MenuItem
Item that must be shown to enable or disable the print of the legendprivate LogTUI
private boolean
Flag indicating if the legend is currently being printed.private final PlayerLobby
private final ViewTUI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
private String
private String
private String
private String
private String
private String
private String
void
setDisplayPlayer
(PlayerLobby displayPlayer) void
setDisplayPlayer
(String nick) void
setFlowCardPlaced
(boolean flowCardPlaced) void
void
setShowLegend
(boolean showLegend) Setter for the flag indicating whether to print the legend
-
Field Details
-
view
-
gameState
-
thisPlayer
-
displayPlayer
-
flowCardPlaced
private boolean flowCardPlaced -
logs
-
showLegend
private boolean showLegendFlag indicating if the legend is currently being printed. The default value is true -
itemForLegend
Item that must be shown to enable or disable the print of the legend
-
-
Constructor Details
-
ViewTUIMatch
-
-
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
-
setDisplayPlayer
- Throws:
InvalidParameterException
-
setLogs
-
printMatch
public void printMatch() -
sectionPlayers
-
sectionLegend
-
sectionField
-
sectionCards
-
sectionLogs
-
sectionCardsThisPlayer
-
sectionCardsOpponentPlayer
-