Class MapPrinter

java.lang.Object
  extended by MapPrinter

public class MapPrinter
extends java.lang.Object


Constructor Summary
MapPrinter()
           
 
Method Summary
private static char getTerrainCharacter(int terrainType)
          Gets the single character that represents a terrain type.
static void printMap()
          Prints the game map.
static void printMap(boolean showAll)
          Prints the game map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapPrinter

public MapPrinter()
Method Detail

printMap

public static void printMap()
Prints the game map.


getTerrainCharacter

private static char getTerrainCharacter(int terrainType)
Gets the single character that represents a terrain type.


printMap

public static void printMap(boolean showAll)
Prints the game map.

Parameters:
showAll - If true, show the entire map, otherwise only show the Locations whose isVisited flag is set to true.