Package javatro.manager.options
Class StartGameOption
java.lang.Object
javatro.manager.options.StartGameOption
- All Implemented Interfaces:
Option
The
StartGameOption class represents a command that initializes and starts a new game
session by setting the game screen.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes the command to begin the game, restore available commands, and update the main screen to display the game interface.Provides a brief description of the command.voidsetDescription(String description) Updates the description of the command.
-
Constructor Details
-
StartGameOption
public StartGameOption()
-
-
Method Details
-
getDescription
Provides a brief description of the command.- Specified by:
getDescriptionin interfaceOption- Returns:
- A string describing the command.
-
setDescription
Updates the description of the command.- Specified by:
setDescriptionin interfaceOption- Parameters:
description- The new description to set.
-
execute
Executes the command to begin the game, restore available commands, and update the main screen to display the game interface.- Specified by:
executein interfaceOption- Throws:
JavatroException- If an error occurs while starting the game.
-