|
|
@ -6,6 +6,10 @@ import java.util.Scanner; |
|
|
|
|
|
|
|
public class QuitCommand implements CommandAPI { |
|
|
|
|
|
|
|
// This command is used to end the game via command |
|
|
|
// When the player quits the game, the game is stopped through System.exit(0) |
|
|
|
// That means it is exited with no error status |
|
|
|
|
|
|
|
@Override |
|
|
|
public void performCommand(Scanner scanner, boolean isRunning, String message, TravelEngine travelEngine) { |
|
|
|
System.out.println(getQuitMessage()); |
|
|
|