Class MenuItemPlayStarter

java.lang.Object
it.polimi.ingsw.am13.client.view.tui.menu.MenuItem
it.polimi.ingsw.am13.client.view.tui.menu.MenuItemPlayStarter

public class MenuItemPlayStarter extends MenuItem
Menu item for playing the starting card in INIT game phase. It expects 1 argument (side on which to play the starter card) and sends the command to the server
  • Constructor Details

    • MenuItemPlayStarter

      public MenuItemPlayStarter()
      Build a new item for playing the starter card
  • Method Details

    • executeCommand

      public void executeCommand(String argsStr, NetworkHandler networkHandler) throws InvalidTUICommandException
      Executes the action this menu item represents
      Specified by:
      executeCommand in class MenuItem
      Parameters:
      argsStr - String of parameters for the command
      networkHandler - Handler of the network thanks to which the item sends the command to the server
      Throws:
      InvalidTUICommandException - If the arguments passed via command line are wrong, or anyway different from what expected