Package Game.Cards

Klasse Card

java.lang.Object
Game.Cards.Card
Bekannte direkte Unterklassen:
Baron, Countess, Guard, Handmaid, King, Priest, Prince, Princess

public class Card extends Object
This class provides the main functionalities of the cards
  • Konstruktordetails

    • Card

      public Card(String name, int value)
      Constructor for the class Card
      Parameter:
      name - The name of this card
      value - The value of this card
  • Methodendetails

    • getName

      public String getName()
      Returns the name of this card
      Gibt zurück:
      The name of this card
    • getValue

      public int getValue()
      Returns the value of this card
      Gibt zurück:
      The value of this card
    • showFunction

      public void showFunction()
      Shows the function of this card