Class MapPrinter

java.lang.Object
  extended by MapPrinter

public class MapPrinter
extends java.lang.Object


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

MapPrinter

public MapPrinter()
Method Detail

printBoardForPlayer

public static void printBoardForPlayer(java.lang.String title,
                                       Board board)
Prints the board for the player

Parameters:
title - The title printed above the board
board - the board belonging to the player.

printBoardForOpponent

public static void printBoardForOpponent(java.lang.String title,
                                         Board board)
Prints the board for the opponent.

Parameters:
title - The title printed above the board
board - the board belonging to the player.

printShipList

public static void printShipList(Board board)
Prints the ships present on this board.