Package javatro.manager.options
Class HelpRulesOption
java.lang.Object
javatro.manager.options.HelpRulesOption
- All Implemented Interfaces:
Option
The HelpRulesOption class provides the rules for playing javatro. This command is executed when
the player requests game rules.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes the command to display the rules of the game.Returns a description of this 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
-
HelpRulesOption
public HelpRulesOption()
-
-
Method Details
-
getDescription
Returns a description of this command.- Specified by:
getDescriptionin interfaceOption- Returns:
- A string describing the command.
-
execute
Executes the command to display the rules of the game.- Specified by:
executein interfaceOption- Throws:
JavatroException- If an error occurs during execution.
-