Interface CardSidePlayableIF

All Superinterfaces:
Serializable
All Known Implementing Classes:
CardSidePlayable

public interface CardSidePlayableIF extends Serializable
  • Method Details

    • getCenterResources

      List<Resource> getCenterResources()
      Returns:
      the resources at the center of the card side
    • getRequirements

      Map<Resource,Integer> getRequirements()
      Returns:
      the resources needed to play this card side(it's empty if no resource is required)
    • getColor

      Color getColor()
      Returns:
      the color of this card
    • calcCornersCovered

      int calcCornersCovered()
      Returns:
      Number of corners covered by this card of that other card cover on this one. Fow how the game works, except for the starter card when no other card is added, it will be always <=3
    • getCornerResources

      ArrayList<Resource> getCornerResources()
      Get the list of resources present in the 4 angles of the card (clockwise order)
      Returns:
      A list of card's corner resources
    • getCoveredCorners

      List<Boolean> getCoveredCorners()
      Returns:
      list of 4 booleans, true if the corresponding corners is covered
    • getPoints

      PointsPlayable getPoints()
      Returns the object which describes all the information related to points
      Returns:
      PointsPlayable interface of the card side
    • getCorners

      List<Corner> getCorners()
      Return the list of corners
      Returns:
      list of card corners (in order, they are: upper left, upper right, lower right, lower left)
    • getId

      String getId()
      Returns the id of the card
    • getSide

      Side getSide()
      Returns:
      Side corresponding to this cardSide
    • clone

      Returns:
      A new instance identical to the object