Class GameUI

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

public class GameUI extends Object
GameUI is a graphical representation (as a String data structure) useful to print CloudUI and multiple IslandUI components next to each other on the console.
  • Constructor Details

    • GameUI

      public GameUI()
  • Method Details

    • draw

      public static String draw(Model ctx)
      The console will be populated with all the island groups in the island field followed by the clouds on the same multiline block.
      Parameters:
      ctx - is a reference to the model used to access the IslandField to print the IslandUI and passed to the CloudUI
      Returns:
      a composed view of islands and clouds