Class InfoUI

java.lang.Object
it.polimi.ingsw.Client.CLI.InfoUI

public class InfoUI extends Object
InfoUI is a graphical informative component (as a String data structure) useful to print details about the TurnOrder and the StudentBag
  • Constructor Details

    • InfoUI

      public InfoUI()
  • Method Details

    • draw

      public static String draw(Model ctx, String caller)
      It will provide the players with a summary about the turn order, it will show the current and next players in line and highlight if you are one of them.
      It also shows the number of remaining coins if the game is in advanced mode.
      Parameters:
      ctx - reference to the model used to access Model.getMutableTurnOrder()
      caller - the player to whom the information will be displayed. It is used to highlight if you are the current or next player
      Returns:
      a visual description of useful information for the players: turns and coins
    • showActions

      public static String showActions()