|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbot.BotBoard
The interface between a Bot and the actual board. Maintains where the bot is, and all that.
| Constructor Summary | |
BotBoard(Bot bot,
Board board)
Make board connecting passed bot with passed board. |
|
| Method Summary | |
protected void |
endAction()
|
Square |
getAdjacentSquare(int dir)
Get adjacent square to bot. |
Board |
getBoard()
Return board the BotBoard is running the bot on. |
Bot |
getBot()
Return the bot the botboard is managing. |
int |
getHeading()
Return direction bot is facing. |
Informer |
getInformer()
Return the display that is being used to show the bot's activities. |
Point |
getLocation()
Where bot is. |
Square |
getSquare()
Return square bot is standing on. |
void |
jump(Square s)
Teleport bot to given square. |
void |
message(String s)
This does a say without the delay or checking for time and all that. |
void |
setInformer(Informer inf)
Set the display device for the board to given informer. |
boolean |
won()
This returns true if the bot has currently filled the win conditions. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BotBoard(Bot bot,
Board board)
| Method Detail |
public void setInformer(Informer inf)
public Square getSquare()
public Point getLocation()
public Square getAdjacentSquare(int dir)
protected void endAction()
public void jump(Square s)
public int getHeading()
public void message(String s)
public boolean won()
public Informer getInformer()
public Board getBoard()
public Bot getBot()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||