From 6615bb9b1cfe996db7c057ff84a194b13a771bc4 Mon Sep 17 00:00:00 2001 From: fdai2751 Date: Thu, 8 Feb 2024 01:31:14 +0100 Subject: [PATCH] added the Ghost GG in the Field --- src/main/java/pacmanGame/VisualizerPlainText.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/pacmanGame/VisualizerPlainText.java b/src/main/java/pacmanGame/VisualizerPlainText.java index f020534..bcf0d22 100644 --- a/src/main/java/pacmanGame/VisualizerPlainText.java +++ b/src/main/java/pacmanGame/VisualizerPlainText.java @@ -54,6 +54,7 @@ public class VisualizerPlainText implements Visualizer { boolean containsGhosts4 = false; boolean containsGhosts5 = false; boolean containsGhosts6 = false; + boolean containsGhosts7 = false; boolean containsPlayer = false; for( int i = 0; i < gameManager.ghosts.length; i++) { if(gameManager.ghosts[i].position.equals(cell.pos)) { @@ -88,6 +89,9 @@ public class VisualizerPlainText implements Visualizer { else if (containsGhosts6) { output += ghostSprite6; } + else if (containsGhosts7) { + output += ghostSprite7; + } else if (sprites.containsKey(cell.type)) { output += sprites.get(cell.type);