Class BlackJackCard
java.lang.Object
de.presti.ree6.game.impl.blackjack.entities.BlackJackCard
Class entity used to represent a card in the game of blackjack.
-
Constructor Summary
ConstructorDescriptionBlackJackCard
(int value, net.dv8tion.jda.api.entities.emoji.CustomEmoji emoji) Creates a new card. -
Method Summary
Modifier and TypeMethodDescriptionnet.dv8tion.jda.api.entities.emoji.CustomEmoji
getEmoji()
Gets the emoji of the card.int
getValue()
Gets the value of the card.boolean
isHidden()
Gets whether the card is hidden or not.void
setHidden
(boolean hidden) Sets whether the card is hidden or not.void
setValue
(int newValue) Set the value of the card.
-
Constructor Details
-
BlackJackCard
public BlackJackCard(int value, net.dv8tion.jda.api.entities.emoji.CustomEmoji emoji) Creates a new card.- Parameters:
value
- The value of the card.emoji
- The emoji of the card.
-
-
Method Details
-
getValue
public int getValue()Gets the value of the card.- Returns:
- The value of the card.
-
setValue
public void setValue(int newValue) Set the value of the card.- Parameters:
newValue
- the new value.
-
getEmoji
public net.dv8tion.jda.api.entities.emoji.CustomEmoji getEmoji()Gets the emoji of the card.- Returns:
- The emoji of the card.
-
isHidden
public boolean isHidden()Gets whether the card is hidden or not.- Returns:
- Whether the card is hidden or not.
-
setHidden
public void setHidden(boolean hidden) Sets whether the card is hidden or not.- Parameters:
hidden
- Whether the card is hidden or not.
-