|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectAI
public class AI
The AI that will be running the computer player
| Constructor Summary | |
|---|---|
AI()
Defqault constructor. |
|
AI(int howSmart)
Contructor for tweaking the intelligence of the AI. |
|
| Method Summary | |
|---|---|
java.lang.String |
getIntro()
returns an introduction string. |
java.lang.String |
getName()
Returns the name based on intelligence of the AI. |
java.awt.Point |
getNextShot()
Gets the next target. |
java.lang.String |
getPronoun()
Returns a pronoun. |
void |
print(Board board)
Prints the player's board. |
void |
printForOpponent(Board board)
|
void |
reportStatus(int status)
Uses parser to display the status |
Board |
setupBoard(int x,
int y)
Sets up the board based on the inputs |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AI()
public AI(int howSmart)
howSmart - defines the intelligence of the AI.| Method Detail |
|---|
public java.lang.String getIntro()
public java.lang.String getPronoun()
public java.lang.String getName()
public void print(Board board)
board - the board.public void printForOpponent(Board board)
public Board setupBoard(int x,
int y)
x - the x-coordinate of the board.y - the y-coordinate of the board.
public java.awt.Point getNextShot()
public void reportStatus(int status)
status - the status of the shot.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||