|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Human
public class Human
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 |
---|
public Human()
Method Detail |
---|
public Board setupBoard(int x, int y)
x
- the length of the x-coordinate of the board.y
- the length of the y-coordinate of the board.public java.awt.Point getNextShot()
public java.lang.String getIntro()
public java.lang.String getPronoun()
public java.lang.String getName()
public void print(Board board)
board
- the board object.public void printForOpponent(Board board)
board
- the board object.public void reportStatus(int status)
status
- the stauts of the last shot.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |