Package javatro.manager.options
Class DiscardCardOption
java.lang.Object
javatro.manager.options.DiscardCardOption
- All Implemented Interfaces:
Option
Represents a command to discard selected cards during gameplay. When executed, transitions to the
card selection interface for discarding cards.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes the command.Retrieves a description of the command.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
-
DiscardCardOption
public DiscardCardOption()
-
-
Method Details
-
getDescription
Retrieves a description of the command. This method has a default implementation returning an empty string.- Specified by:
getDescriptionin interfaceOption- Returns:
- The static description "Discard Cards"
-
execute
Executes the command. Implementing classes must define specific behavior. Transitions to the card discard selection screen.- Specified by:
executein interfaceOption- Throws:
JavatroException- if screen transition fails
-