Browse Source

refactoring: Added comments to QuitCommand

remotes/origin/develop
David Hermann 2 years ago
parent
commit
3e4259170c
  1. 4
      src/main/java/org/bitbiome/commands/QuitCommand.java

4
src/main/java/org/bitbiome/commands/QuitCommand.java

@ -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());

Loading…
Cancel
Save