Class RejectBlindOption

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

public class RejectBlindOption extends Object implements Option
Represents an option to reject the current blind and move to the next available blind level. Implements the Option interface.
  • Constructor Details

    • RejectBlindOption

      public RejectBlindOption()
  • Method Details

    • getDescription

      public String getDescription()
      Returns the description of this option.
      Specified by:
      getDescription in interface Option
      Returns:
      A string representing the description of the option.
    • execute

      public void execute() throws JavatroException
      Executes the action of rejecting the current blind level. If the current blind is SMALL_BLIND, it moves to LARGE_BLIND. If the current blind is LARGE_BLIND, it moves to BOSS_BLIND. If already at BOSS_BLIND, a warning message is displayed, indicating that the player must play at this level.
      Specified by:
      execute in interface Option
      Throws:
      JavatroException - if an error occurs during execution.