Package javatro.core.jokers
Class Joker
java.lang.Object
javatro.core.jokers.Joker
- Direct Known Subclasses:
AbstractJoker,GluttonousJoker,GreedyJoker,HalfJoker,LustyJoker,OddToddJoker,ScaryFaceJoker,WrathfulJoker
Represents a Joker card. Each Joker card has a description and a string representation of the
Joker Object.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum representing the type of Joker Card. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
name
-
identifierName
-
description
-
path
-
scoreType
-
-
Constructor Details
-
Joker
public Joker()
-
-
Method Details
-
interact
Abstract method of Joker for scoring purposes. The playedCard parameter should be null if not required. Overridden by Joker subclasses.- Parameters:
playedCard- Card Class containing the card played and to be interacted with (if at all).scoreClass- Score Class containing relevant information such as totalChips, totalMultiplier.
-
getName
-
getIdentifierName
-
getDescription
-
getPath
-