Interface PointsObjective

All Superinterfaces:
Serializable
All Known Implementing Classes:
PointsPattern, PointsSet

public interface PointsObjective extends Serializable
Representation of points of an objective card. It contains information about how to calculate the points, and allows to actually calculate them given a field. Following the game rules, it should be used to calculate points once the turn-phase is finished.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Calculate points of the card, according to information present in class that implements this interface.
    int
     
  • Method Details

    • calcPoints

      int calcPoints(FieldIF field)
      Calculate points of the card, according to information present in class that implements this interface.
      Parameters:
      field - Field of the player for whom you want to calculate the points given by the card objective.
      Returns:
      Number of points guaranteed by the card objective
    • getPointsMultiplier

      int getPointsMultiplier()
      Returns:
      Points multiplier of the objective card (how many points are given for each pattern/set satisfied in the field)