|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbot.Bot
bot.FaultyBot
This is a bot that fails to do its various tasks upon occasion. You can restore functionality via restoreFeeler, restoreWallFeeler, restoreCompass, etc.
| Field Summary |
| Fields inherited from class bot.Bot |
board |
| Constructor Summary | |
FaultyBot()
The constructor does nothing. |
|
| Method Summary | |
Thing |
feel()
ACTION: Feel in direction bot is facing. |
int |
getHeading()
Maybe return correct heading... if compass is not broken. |
Thing |
grab()
Grabs the thing in front of bot. |
void |
left()
Turn left 90 degrees. |
void |
place(Thing t)
Place a thing in the square I am standing on. |
protected void |
restoreCompass()
|
protected void |
restoreFeeler()
|
protected void |
restoreGrabber()
|
protected void |
restorePlacer()
|
protected void |
restoreStepper()
|
protected void |
restoreTurner()
|
protected void |
restoreWallFeeler()
|
void |
right()
Turn right 90 degrees. |
void |
say(String s)
Say the string. |
void |
step()
Take a single step in the current direction. |
void |
turn()
|
| Methods inherited from class bot.Bot |
compute, drop, feelKey, feelPit, feelWall, getBoard, getBotBoard, getInformer, getInput, getInputCharacter, getIntFromHuman, getLocation, getStringFromHuman, rest, say, say, say, say, setAppearance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FaultyBot()
| Method Detail |
public final void step()
throws BotException
step in class BotBotExceptionpublic final Thing grab()
grab in class Botpublic final Thing feel()
Bot
feel in class Botpublic final void say(String s)
say in class Bots - The string to say.public final void right()
right in class Botpublic final void left()
left in class Bot
public final void place(Thing t)
throws BotException
place in class Bott - The object to put down.
BotExceptionprotected void restoreStepper()
protected void restoreTurner()
protected void restoreGrabber()
protected void restoreFeeler()
protected void restorePlacer()
protected void restoreCompass()
protected void restoreWallFeeler()
public void turn()
public int getHeading()
getHeading in class Bot
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||