Module polimi.ingsw.am21.codex
Class CountingObjective
java.lang.Object
polimi.ingsw.am21.codex.model.Cards.Objectives.Objective
polimi.ingsw.am21.codex.model.Cards.Objectives.CountingObjective
- All Implemented Interfaces:
CliCard
-
Constructor Summary
ConstructorsConstructorDescriptionCountingObjective
(Map<ResourceType, Integer> resources, Map<ObjectType, Integer> objects) -
Method Summary
Modifier and TypeMethodDescriptioncardToAscii
(HashMap<Integer, String> cardStringMap) Converts the card to an ASCII representationFunction that takes in a playerboard and the points of the objective card and returns the rewarded pointsMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface polimi.ingsw.am21.codex.view.TUI.utils.CliCard
cardToAscii
-
Constructor Details
-
CountingObjective
-
-
Method Details
-
getEvaluator
Description copied from class:Objective
Function that takes in a playerboard and the points of the objective card and returns the rewarded points- Specified by:
getEvaluator
in classObjective
-
cardToString
- Specified by:
cardToString
in interfaceCliCard
-
cardToAscii
Description copied from interface:CliCard
Converts the card to an ASCII representation- Specified by:
cardToAscii
in interfaceCliCard
- Parameters:
cardStringMap
- Maps the position of the item to the corresponding string to render inside the card- Returns:
- The rendered ASCII string
-