Class PersonalGoalCard

All Implemented Interfaces:
PersonalGoalCardInterface, Serializable, Remote

public class PersonalGoalCard extends UnicastRemoteObject implements PersonalGoalCardInterface
This class represents the Personal Goal cards, thanks to which players may grant points if they match the pattern with the corresponding ObjectCards
See Also:
  • Field Details

    • LIMIT

      public static final int LIMIT
      Limit of Personal Goal Cards.
      See Also:
    • type

      @Expose private final int type
      This attribute stands for the id of the Personal Goal Card, which permits to identify the different Personal Goal Cards.
    • pattern

      @Expose private Optional<ObjectCardType>[][] pattern
      The pattern represents the position of specific types of object cards.
  • Constructor Details

    • PersonalGoalCard

      public PersonalGoalCard(int type) throws Exception
      Class constructor. The pattern is created by reading information from the file.
      Parameters:
      type - personal goal cards' id
      Throws:
      Exception - if the file is not read properly
    • PersonalGoalCard

      private PersonalGoalCard(int type, Optional<ObjectCardType>[][] pattern) throws RemoteException
      Related to Game's refresh strategy
      Throws:
      RemoteException
  • Method Details