Package javatro.manager.options
Class ExitGameOption
java.lang.Object
javatro.manager.options.ExitGameOption
- All Implemented Interfaces:
Option
Terminates the game application after displaying exit sequences. Shows farewell message and
performs clean shutdown.
-
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
-
ExitGameOption
public ExitGameOption()
-
-
Method Details
-
getDescription
Retrieves a description of the command. This method has a default implementation returning an empty string.- Specified by:
getDescriptionin interfaceOption- Returns:
- Constant description "Exit Game"
-
execute
Executes the command. Implementing classes must define specific behavior. Performs orderly application shutdown sequence.- Specified by:
executein interfaceOption- Throws:
JavatroException- if any display operation fails
-