|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object MapPrinter
public class MapPrinter
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 |
---|
public MapPrinter()
Method Detail |
---|
public static void printMap()
private static char getTerrainCharacter(int terrainType)
public static void printMap(boolean showAll)
showAll
- If true, show the entire map, otherwise only show the Locations whose isVisited flag is set to true.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |