Module polimi.ingsw.am21.codex
Class CardBuilder
java.lang.Object
polimi.ingsw.am21.codex.model.Cards.Builder.CardBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
setBackPermanentResources
(List<ResourceType> backPermanentResources) setCorners
(CardSideType side, Map<CornerPosition, Optional<CornerContentType>> cornerMap) setObjectiveGeometry
(Map<AdjacentPosition, ResourceType> objectiveGeometry) setObjectiveObjects
(Map<ObjectType, Integer> objectiveObjects) setObjectiveResources
(Map<ResourceType, Integer> objectiveResources) setObjectiveType
(ObjectiveType objectiveType) setPlacementCondition
(List<ResourceType> placementCondition) setPointCondition
(PointConditionType pointConditionType) setPointConditionObject
(ObjectType pointConditionObject) setPoints
(int points)
-
Constructor Details
-
CardBuilder
-
-
Method Details
-
setPoints
- Throws:
WrongCardTypeException
-
setObjectiveType
- Throws:
WrongCardTypeException
-
setObjectiveGeometry
public CardBuilder setObjectiveGeometry(Map<AdjacentPosition, ResourceType> objectiveGeometry) throws WrongCardTypeException, ConflictingParameterException -
setObjectiveResources
public CardBuilder setObjectiveResources(Map<ResourceType, Integer> objectiveResources) throws WrongCardTypeException, ConflictingParameterException -
setObjectiveObjects
public CardBuilder setObjectiveObjects(Map<ObjectType, Integer> objectiveObjects) throws WrongCardTypeException, ConflictingParameterException -
setBackPermanentResources
public CardBuilder setBackPermanentResources(List<ResourceType> backPermanentResources) throws WrongCardTypeException - Throws:
WrongCardTypeException
-
setPlacementCondition
public CardBuilder setPlacementCondition(List<ResourceType> placementCondition) throws WrongCardTypeException - Throws:
WrongCardTypeException
-
setPointCondition
public CardBuilder setPointCondition(PointConditionType pointConditionType) throws WrongCardTypeException - Throws:
WrongCardTypeException
-
setPointConditionObject
public CardBuilder setPointConditionObject(ObjectType pointConditionObject) throws WrongCardTypeException, ConflictingParameterException -
setCorners
public CardBuilder setCorners(CardSideType side, Map<CornerPosition, Optional<CornerContentType>> cornerMap) throws WrongCardTypeException- Throws:
WrongCardTypeException
-
buildObjectiveCard
- Throws:
MissingParametersException
-
buildPlayableCard
- Throws:
MissingParametersException
-
build
- Throws:
MissingParametersException
-