Package javatro.display.screens
Class HelpScreen
java.lang.Object
javatro.display.screens.Screen
javatro.display.screens.HelpScreen
The
HelpScreen class represents a screen displaying the help menu in the javatro
application. It provides various help options, including an introduction, rules, how-to-play
guide, and tips. Users can also return to the main menu from this screen.-
Field Summary
Fields inherited from class javatro.display.screens.Screen
commandMap -
Constructor Summary
ConstructorsConstructorDescriptionConstructs aHelpScreeninstance and initializes the available help options. -
Method Summary
Methods inherited from class javatro.display.screens.Screen
clearCommandMap, displayOptions, getCommand, getCommandMap, getOptionsSize, getOutput
-
Constructor Details
-
HelpScreen
Constructs aHelpScreeninstance and initializes the available help options.- Throws:
JavatroException- if an error occurs while setting up the screen
-
-
Method Details
-
displayScreen
public void displayScreen()Displays the help screen. This method should be overridden to define how the help menu is presented.- Specified by:
displayScreenin classScreen
-