java.lang.Object
polimi.ingsw.am21.codex.model.Cards.Objectives.Objective
polimi.ingsw.am21.codex.model.Cards.Objectives.GeometricObjective
All Implemented Interfaces:
CliCard

public class GeometricObjective extends Objective implements CliCard
  • Constructor Details

  • Method Details

    • getEvaluator

      public BiFunction<PlayerBoard,Integer,Integer> getEvaluator()
      Description copied from class: Objective
      Function that takes in a playerboard and the points of the objective card and returns the rewarded points
      Specified by:
      getEvaluator in class Objective
    • cardToString

      public String cardToString()
      Specified by:
      cardToString in interface CliCard
    • 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
      Parameters:
      cardStringMap - Maps the position of the item to the corresponding string to render inside the card
      Returns:
      The rendered ASCII string