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, getImagePathMethods 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
-
ObjectiveCard
-
-
Method Details
-
getEvaluator
Description copied from class:CardGenerates a function that, when called by passing the player board, returns the points of the card.- Specified by:
getEvaluatorin classCard
-
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
-