Class DiscardCardOption

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

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

    • DiscardCardOption

      public DiscardCardOption()
  • 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 "Discard Cards"
    • execute

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