Module polimi.ingsw.am21.codex
Class ObjectiveCard
java.lang.Object
polimi.ingsw.am21.codex.model.Cards.Card
polimi.ingsw.am21.codex.model.Cards.Objectives.ObjectiveCard
- All Implemented Interfaces:
GuiElement
,CliCard
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncardToAscii
(HashMap<Integer, String> cardStringMap) Converts the card to an ASCII representationGenerates a function that, when called by passing the player board, returns the points of the card.Methods inherited from class polimi.ingsw.am21.codex.model.Cards.Card
getId, getImagePath, getImagePath
Methods 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
-
ObjectiveCard
-
-
Method Details
-
getEvaluator
Description copied from class:Card
Generates a function that, when called by passing the player board, returns the points of the card.- Specified by:
getEvaluator
in classCard
-
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
-