|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object MapPrinter
public class MapPrinter
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 |
---|
public static void printMap(Map map, Room theRoom)
map
- The Map
to print out.theRoom
- The Room
that the player is currently in.public static void printSimpleMap(Map map, Room theRoom)
map
- The Map
to print out.theRoom
- The Room
that the player is currently in.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |