|
@ -53,6 +53,7 @@ public class VisualizerPlainText implements Visualizer { |
|
|
boolean containsGhosts3 = false; |
|
|
boolean containsGhosts3 = false; |
|
|
boolean containsGhosts4 = false; |
|
|
boolean containsGhosts4 = false; |
|
|
boolean containsGhosts5 = false; |
|
|
boolean containsGhosts5 = false; |
|
|
|
|
|
boolean containsGhosts6 = false; |
|
|
boolean containsPlayer = false; |
|
|
boolean containsPlayer = false; |
|
|
for( int i = 0; i < gameManager.ghosts.length; i++) { |
|
|
for( int i = 0; i < gameManager.ghosts.length; i++) { |
|
|
if(gameManager.ghosts[i].position.equals(cell.pos)) { |
|
|
if(gameManager.ghosts[i].position.equals(cell.pos)) { |
|
@ -84,6 +85,9 @@ public class VisualizerPlainText implements Visualizer { |
|
|
else if (containsGhosts5) { |
|
|
else if (containsGhosts5) { |
|
|
output += ghostSprite5; |
|
|
output += ghostSprite5; |
|
|
} |
|
|
} |
|
|
|
|
|
else if (containsGhosts6) { |
|
|
|
|
|
output += ghostSprite6; |
|
|
|
|
|
} |
|
|
else if (sprites.containsKey(cell.type)) { |
|
|
else if (sprites.containsKey(cell.type)) { |
|
|
|
|
|
|
|
|
output += sprites.get(cell.type); |
|
|
output += sprites.get(cell.type); |
|
|