|
@ -51,6 +51,7 @@ public class VisualizerPlainText implements Visualizer { |
|
|
boolean containsGhosts1 = false; |
|
|
boolean containsGhosts1 = false; |
|
|
boolean containsGhosts2 = false; |
|
|
boolean containsGhosts2 = false; |
|
|
boolean containsGhosts3 = false; |
|
|
boolean containsGhosts3 = false; |
|
|
|
|
|
boolean containsGhosts4 = 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)) { |
|
@ -76,6 +77,9 @@ public class VisualizerPlainText implements Visualizer { |
|
|
else if (containsGhosts3) { |
|
|
else if (containsGhosts3) { |
|
|
output += ghostSprite3; |
|
|
output += ghostSprite3; |
|
|
} |
|
|
} |
|
|
|
|
|
else if (containsGhosts4) { |
|
|
|
|
|
output += ghostSprite4; |
|
|
|
|
|
} |
|
|
else if (sprites.containsKey(cell.type)) { |
|
|
else if (sprites.containsKey(cell.type)) { |
|
|
|
|
|
|
|
|
output += sprites.get(cell.type); |
|
|
output += sprites.get(cell.type); |
|
|