Class Human

java.lang.Object
  extended by Human

public class Human
extends java.lang.Object

Represetns the human player in the game.


Constructor Summary
Human()
           
 
Method Summary
 java.lang.String getIntro()
          Returns an introduction string.
 java.lang.String getName()
           
 java.awt.Point getNextShot()
          Returns the next target.
 java.lang.String getPronoun()
           
 void print(Board board)
          Prints out the board.
 void printForOpponent(Board board)
          Prints out the board.
 void reportStatus(int status)
          Reports the status of the last shot.
 Board setupBoard(int x, int y)
          Sets up the board for the human.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Human

public Human()
Method Detail

setupBoard

public Board setupBoard(int x,
                        int y)
Sets up the board for the human.

Parameters:
x - the length of the x-coordinate of the board.
y - the length of the y-coordinate of the board.

getNextShot

public java.awt.Point getNextShot()
Returns the next target.

Returns:
the point where the next target is located.

getIntro

public java.lang.String getIntro()
Returns an introduction string.

Returns:
the introduction string

getPronoun

public java.lang.String getPronoun()

getName

public java.lang.String getName()

print

public void print(Board board)
Prints out the board.

Parameters:
board - the board object.

printForOpponent

public void printForOpponent(Board board)
Prints out the board.

Parameters:
board - the board object.

reportStatus

public void reportStatus(int status)
Reports the status of the last shot.

Parameters:
status - the stauts of the last shot.