java.lang.Object
polimi.ingsw.am21.codex.model.Cards.Playable.PlayableSide
polimi.ingsw.am21.codex.model.Cards.Playable.PlayableBackSide
All Implemented Interfaces:
CliCard

public class PlayableBackSide extends PlayableSide implements CliCard
  • Constructor Details

    • PlayableBackSide

      public PlayableBackSide(List<ResourceType> permanentResources)
      Constructor
      Parameters:
      permanentResources - The list of permanent resources on the side
  • Method Details

    • getPermanentResources

      public List<ResourceType> getPermanentResources()
    • getEvaluator

      public BiFunction<PlayerBoard,Integer,Integer> getEvaluator()
      Description copied from class: PlayableSide
      Generates a function that should be called to get the points that should be attributed to a player when they place a card on this side. The returned function requires a PlayerBoard an Integer representing the number of corners the card is covering.
      Specified by:
      getEvaluator in class PlayableSide
    • cardToAscii

      public String cardToAscii(HashMap<Integer,String> cardStringMap)
      Description copied from interface: CliCard
      Converts the card to an ASCII representation
      Specified by:
      cardToAscii in interface CliCard
      Overrides:
      cardToAscii in class PlayableSide
      Parameters:
      cardStringMap - Maps the position of the item to the corresponding string to render inside the card
      Returns:
      The rendered ASCII string
    • cardToString

      public String cardToString()
      Specified by:
      cardToString in interface CliCard