Class BlackJackCard

java.lang.Object
de.presti.ree6.game.impl.blackjack.entities.BlackJackCard

public class BlackJackCard extends Object
Class entity used to represent a card in the game of blackjack.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlackJackCard(int value, net.dv8tion.jda.api.entities.emoji.CustomEmoji emoji)
    Creates a new card.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.dv8tion.jda.api.entities.emoji.CustomEmoji
    Gets the emoji of the card.
    int
    Gets the value of the card.
    boolean
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.