Class PlayCardOption

java.lang.Object
javatro.manager.options.PlayCardOption
All Implemented Interfaces:
Option

public class PlayCardOption extends Object implements Option
Represents a command to play selected cards during gameplay. When executed, transitions to the card selection interface for playing cards.
  • Constructor Details

    • PlayCardOption

      public PlayCardOption()
  • Method Details

    • getDescription

      public String getDescription()
      Retrieves a description of the command. This method has a default implementation returning an empty string.
      Specified by:
      getDescription in interface Option
      Returns:
      The static description "Play Cards"
    • execute

      public void execute() throws JavatroException
      Executes the command. Implementing classes must define specific behavior. Transitions to the card play selection screen.
      Specified by:
      execute in interface Option
      Throws:
      JavatroException - if screen transition fails