Package javatro.manager.options
Class PlayCardOption
java.lang.Object
javatro.manager.options.PlayCardOption
- All Implemented Interfaces:
Option
Represents a command to play selected cards during gameplay. When executed, transitions to the
card selection interface for playing 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
-
PlayCardOption
public PlayCardOption()
-
-
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 "Play Cards"
-
execute
Executes the command. Implementing classes must define specific behavior. Transitions to the card play selection screen.- Specified by:
executein interfaceOption- Throws:
JavatroException- if screen transition fails
-