Package javatro.manager.options
Class RejectBlindOption
java.lang.Object
javatro.manager.options.RejectBlindOption
- All Implemented Interfaces:
Option
Represents an option to reject the current blind and move to the next available blind level.
Implements the
Option interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes the action of rejecting the current blind level.Returns the description of this option.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javatro.manager.options.Option
setDescription
-
Constructor Details
-
RejectBlindOption
public RejectBlindOption()
-
-
Method Details
-
getDescription
Returns the description of this option.- Specified by:
getDescriptionin interfaceOption- Returns:
- A string representing the description of the option.
-
execute
Executes the action of rejecting the current blind level. If the current blind isSMALL_BLIND, it moves toLARGE_BLIND. If the current blind isLARGE_BLIND, it moves toBOSS_BLIND. If already atBOSS_BLIND, a warning message is displayed, indicating that the player must play at this level.- Specified by:
executein interfaceOption- Throws:
JavatroException- if an error occurs during execution.
-