Class MapPrinter

java.lang.Object
  extended by MapPrinter

public class MapPrinter
extends java.lang.Object

This class is used to print out the map to the screen. For full details of the MapPrinter class, see Lab 11. This class does not have a constructor, and all it's methods are static. Thus, they are called by MapPrinter.printMap(foo,bar), for example.


Method Summary
static void printMap(Map map, Room theRoom)
          Prints out a better map.
static void printSimpleMap(Map map, Room theRoom)
          Prints out a simple map; printMap() should be used instead.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

printMap

public static void printMap(Map map,
                            Room theRoom)
Prints out a better map. This map displays the doorway connections between rooms.

Parameters:
map - The Map to print out.
theRoom - The Room that the player is currently in.

printSimpleMap

public static void printSimpleMap(Map map,
                                  Room theRoom)
Prints out a simple map; printMap() should be used instead. This map does not have doorway connections displayed.

Parameters:
map - The Map to print out.
theRoom - The Room that the player is currently in.