Interface CardPlayableIF

All Superinterfaces:
CardIF, Serializable
All Known Subinterfaces:
CardStarterIF
All Known Implementing Classes:
CardGold, CardPlayable, CardResource, CardStarter

public interface CardPlayableIF extends CardIF
Represents a card that can be played in player's field sometime during the game. Hence, it could be a resource card, a gold card or a starter card. It can return the card's id and its visible side (if it's visible in someone's field of in the commond field)
  • Method Details

    • getPlayedCardSide

      CardSidePlayableIF getPlayedCardSide()
      Returns:
      The card side which is visible in the field (player's field or common field) Null if the card is not visible in the field
    • getSide

      CardSidePlayableIF getSide(Side side)
      Parameters:
      side - Side whose card side is to be retrieved
      Returns:
      Card side corresponding to specified side