Class CloudUI

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

public class CloudUI extends Object
CloudUI is a graphical representation (as a String data structure) useful to print multiple cloud components on the console.
The internal information of the model element is described in Cloud.
  • Constructor Details

    • CloudUI

      public CloudUI()
  • Method Details

    • draw

      public static String draw(Model ctx)
      The Cloud will be represented with a title and its related id, and the contained students if present. According to the number of players, it will create a different layout of the clouds on the console.
      Parameters:
      ctx - is a reference to the model used to access the clouds' information.
      Returns:
      the representation of the clouds group.