Class ClientCommonGoalCard
java.lang.Object
it.polimi.ingsw.Client.ClientModel.ClientCommonGoalCard
- All Implemented Interfaces:
CommonGoalCardInterface
,Remote
Common Goal Card (Client)
-
Field Summary
Fields inherited from interface it.polimi.ingsw.Common.CommonGoalCardInterface
LIMIT
-
Constructor Summary
ConstructorDescriptionClientCommonGoalCard
(int type, String description) CommonGoalCard's constructor. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the textual description of the pattern that the player has to achieve, in order to gain points.int
getType()
Common Goal Card's type (ordinal)
-
Field Details
-
type
@Expose private final int type -
description
-
increments
-
-
Constructor Details
-
ClientCommonGoalCard
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 patterndescription
- String: textual description of the pattern
-
-
Method Details
-
getType
public int getType()Common Goal Card's type (ordinal)- Specified by:
getType
in interfaceCommonGoalCardInterface
- Returns:
- type
-
getDescription
Description copied from interface:CommonGoalCardInterface
This method returns the textual description of the pattern that the player has to achieve, in order to gain points.- Specified by:
getDescription
in interfaceCommonGoalCardInterface
- Returns:
- String: textual description of the pattern
-
getIncrements
- Specified by:
getIncrements
in interfaceCommonGoalCardInterface
- Returns:
- Score Increments stack
-