From 3e4259170cebe5dfb1fa2d16073a96d7e7f67c51 Mon Sep 17 00:00:00 2001 From: David Hermann Date: Mon, 6 Feb 2023 11:28:09 +0100 Subject: [PATCH] refactoring: Added comments to QuitCommand --- src/main/java/org/bitbiome/commands/QuitCommand.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/bitbiome/commands/QuitCommand.java b/src/main/java/org/bitbiome/commands/QuitCommand.java index 25dbb00..258ab1a 100644 --- a/src/main/java/org/bitbiome/commands/QuitCommand.java +++ b/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());