Class ClientBoardSpace

java.lang.Object
it.polimi.ingsw.Client.ClientModel.ClientBoardSpace

public class ClientBoardSpace extends Object
Board Spaces (client)
  • Field Details

    • x

      @Expose private final int x
    • y

      @Expose private final int y
    • usable

      @Expose private final boolean usable
    • dots

      @Expose private final Optional<Integer> dots
    • card

      @Expose private Optional<ClientObjectCard> card
  • Constructor Details

    • ClientBoardSpace

      public ClientBoardSpace(int x, int y, boolean usable, Optional<Integer> dots)
      ClientBoardSpace class constructor
      Parameters:
      x - coordinate
      y - coordinate
      usable - usability of a space in both absolute and players-dependent criteria
      dots - number of dots on that space (based on a number of players)
  • Method Details

    • isUsable

      public boolean isUsable()
      Returns:
      usability of the space
    • getCard

      public Optional<ClientObjectCard> getCard()
      Returns:
      card in the space (as an Optional)