|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectMapPrinter
public class MapPrinter
| Constructor Summary | |
|---|---|
MapPrinter()
|
|
| Method Summary | |
|---|---|
static void |
printBoardForOpponent(java.lang.String title,
Board board)
Prints the board for the opponent. |
static void |
printBoardForPlayer(java.lang.String title,
Board board)
Prints the board for the player |
static void |
printShipList(Board board)
Prints the ships present on this board. |
| 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 printBoardForPlayer(java.lang.String title,
Board board)
title - The title printed above the boardboard - the board belonging to the player.
public static void printBoardForOpponent(java.lang.String title,
Board board)
title - The title printed above the boardboard - the board belonging to the player.public static void printShipList(Board board)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||