Package javatro.manager.options
Class HelpHowOption
java.lang.Object
javatro.manager.options.HelpHowOption
- All Implemented Interfaces:
Option
The HelpHowOption class explains how to play javatro. This command is executed when the player
requests gameplay instructions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes the command to display instructions on how to play.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
-
HelpHowOption
public HelpHowOption()
-
-
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 instructions on how to play.- Specified by:
executein interfaceOption- Throws:
JavatroException- If an error occurs during execution.
-