Class ViewTUIPrintUtils.CardSideSymbolsBuilder

java.lang.Object
it.polimi.ingsw.am13.client.view.tui.ViewTUIPrintUtils.CardSideSymbolsBuilder
Enclosing class:
ViewTUIPrintUtils

public static class ViewTUIPrintUtils.CardSideSymbolsBuilder extends Object
Static class containing all the symbols related to a card side
  • Field Details

    • type

      public Character type
      gold/resource/starter -> G/R/S
    • side

      public Character side
      front/back -> F/B
    • corners

      public Character[] corners
      -> {x,y,z,k} (a character for each corner, corresponding to its resource)
    • points

      public String points
      points -> "2xK" / " 2 " (either a number representing instant points, or a number representing how many points the player gets for each object/covered corner, followed by x and then a symbol representing the object or the covered corner condition
    • color

      public String color
      resource color -> " x " / "[x]"
    • requirements

      public String requirements
      requirements -> " x " / " xx " / " xxx " / "xxxx " / "xxxxx"
    • centerResourcesStarter

      public String centerResourcesStarter
      "xyz"
  • Constructor Details

    • CardSideSymbolsBuilder

      public CardSideSymbolsBuilder(CardPlayableIF c, Side s)
      Construct this class by initialising the various symbols according to the passed card side
      Parameters:
      c - a playable card
      s - a side for that card (front/back)