Module it.polimi.ingsw.am13
Class MenuItemEnableLegend
java.lang.Object
it.polimi.ingsw.am13.client.view.tui.menu.MenuItem
it.polimi.ingsw.am13.client.view.tui.menu.MenuItemEnableLegend
Menu item to enable the print of the legend in field view
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ViewTUIMatch
View handling the printed match for TUI -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new menu item to enable the print of the legend -
Method Summary
Modifier and TypeMethodDescriptionvoid
executeCommand
(String argsStr, NetworkHandler networkHandler) Executes the action this menu item representsMethods inherited from class it.polimi.ingsw.am13.client.view.tui.menu.MenuItem
getCommandKey, getDescription, toString
-
Field Details
-
view
View handling the printed match for TUI
-
-
Constructor Details
-
MenuItemEnableLegend
Creates a new menu item to enable the print of the legend- Parameters:
view
- View handling the printed match for TUI
-
-
Method Details
-
executeCommand
public void executeCommand(String argsStr, NetworkHandler networkHandler) throws InvalidTUICommandException Executes the action this menu item represents- Specified by:
executeCommand
in classMenuItem
- Parameters:
argsStr
- String of parameters for the commandnetworkHandler
- Handler of the network thanks to which the item sends the command to the server- Throws:
InvalidTUICommandException
- If If there are argument passed via command line
-