Package cards

Klasse King


public class King extends Card
This class provides special functionalities of the card "King Arnaud IV"
Version:
1.0
Autor:
Isabell Hans
  • Konstruktordetails

    • King

      public King()
      The constructor for the class King
  • Methodendetails

    • showFunction

      public void showFunction()
      Prints out the function of this card
      Setzt außer Kraft:
      showFunction in Klasse Card
    • play

      public void play(Scanner scanner, ArrayList<Player> players, Player turn, Deck deck, Card firstCard)
      This method provides the function of this card
      Setzt außer Kraft:
      play in Klasse Card
      Parameter:
      scanner - The scanner used by the calling method
      players - The list of players
      turn - The player whose turn it is
      deck - The current deck of cards
      firstCard - The card drawn in the beginning