Class ClientBoardSpace
java.lang.Object
it.polimi.ingsw.Client.ClientModel.ClientBoardSpace
Board Spaces (client)
-
Field Summary
-
Constructor Summary
ConstructorDescriptionClientBoardSpace
(int x, int y, boolean usable, Optional<Integer> dots) ClientBoardSpace class constructor -
Method Summary
-
Field Details
-
x
@Expose private final int x -
y
@Expose private final int y -
usable
@Expose private final boolean usable -
dots
-
card
-
-
Constructor Details
-
ClientBoardSpace
ClientBoardSpace class constructor- Parameters:
x
- coordinatey
- coordinateusable
- usability of a space in both absolute and players-dependent criteriadots
- number of dots on that space (based on a number of players)
-
-
Method Details
-
isUsable
public boolean isUsable()- Returns:
- usability of the space
-
getCard
- Returns:
- card in the space (as an Optional)
-