Module polimi.ingsw.am21.codex
Class GeometricObjective
java.lang.Object
polimi.ingsw.am21.codex.model.Cards.Objectives.Objective
polimi.ingsw.am21.codex.model.Cards.Objectives.GeometricObjective
- All Implemented Interfaces:
CliCard
-
Constructor Summary
Constructors -
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, waitMethods inherited from interface polimi.ingsw.am21.codex.view.TUI.utils.CliCard
cardToAscii
-
Constructor Details
-
GeometricObjective
-
-
Method Details
-
getEvaluator
Description copied from class:ObjectiveFunction that takes in a playerboard and the points of the objective card and returns the rewarded points- Specified by:
getEvaluatorin classObjective
-
cardToString
- Specified by:
cardToStringin interfaceCliCard
-
cardToAscii
Description copied from interface:CliCardConverts the card to an ASCII representation- Specified by:
cardToAsciiin interfaceCliCard- Parameters:
cardStringMap- Maps the position of the item to the corresponding string to render inside the card- Returns:
- The rendered ASCII string
-