From 6c6b6b10aae12df19e01320dddf41c838f0a48ba Mon Sep 17 00:00:00 2001 From: fdai2751 Date: Thu, 8 Feb 2024 01:11:42 +0100 Subject: [PATCH] added the Ghost EE 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 949ae9c..95ca08e 100644 --- a/src/main/java/pacmanGame/VisualizerPlainText.java +++ b/src/main/java/pacmanGame/VisualizerPlainText.java @@ -52,6 +52,7 @@ public class VisualizerPlainText implements Visualizer { boolean containsGhosts2 = false; boolean containsGhosts3 = false; boolean containsGhosts4 = false; + boolean containsGhosts5 = false; boolean containsPlayer = false; for( int i = 0; i < gameManager.ghosts.length; i++) { if(gameManager.ghosts[i].position.equals(cell.pos)) { @@ -80,6 +81,9 @@ public class VisualizerPlainText implements Visualizer { else if (containsGhosts4) { output += ghostSprite4; } + else if (containsGhosts5) { + output += ghostSprite5; + } else if (sprites.containsKey(cell.type)) { output += sprites.get(cell.type);