Class MenuItemUpdateRoomList

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

public class MenuItemUpdateRoomList extends MenuItem
Menu item for updating the listed rooms. It simply sends the command for listing rooms to the server
  • Constructor Details

    • MenuItemUpdateRoomList

      public MenuItemUpdateRoomList()
      Build a new item for updating the list of rooms
  • Method Details

    • executeCommand

      public void executeCommand(String args, NetworkHandler networkHandler) throws InvalidTUICommandException
      Executes the action this menu item represents
      Specified by:
      executeCommand in class MenuItem
      Parameters:
      args - 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