Class ClientCommonGoalCard

java.lang.Object
it.polimi.ingsw.Client.ClientModel.ClientCommonGoalCard
All Implemented Interfaces:
CommonGoalCardInterface, Remote

public class ClientCommonGoalCard extends Object implements CommonGoalCardInterface
Common Goal Card (Client)
  • Field Details

    • type

      @Expose private final int type
    • description

      @Expose private String description
    • increments

      @Expose private Stack<ClientScoreCard> increments
  • Constructor Details

    • ClientCommonGoalCard

      public ClientCommonGoalCard(int type, String description)
      CommonGoalCard's constructor. New ScoreCards with a value of 2,4,6 or 8 points are pushed into the Stack increments according to the playerCount, from the lowest to the highest score value.
      Parameters:
      type - it indicates the id of the Common Goal Card, in order to identify the pattern
      description - String: textual description of the pattern
  • Method Details