bot
Class HumanBot
java.lang.Object
bot.Bot
bot.HumanBot
- public class HumanBot
- extends Bot
Bot that accepts human input. The possabilities are [S]tep [T]urn [Q]uit [G]rab
[F]eel and [B]low up.
If in make mode: [P]lace (a [B]ook or [K]ey).
| Fields inherited from class bot.Bot |
board |
| Methods inherited from class bot.Bot |
drop, feel, feelKey, feelPit, feelWall, getBoard, getBotBoard, getHeading, getInformer, getInput, getInputCharacter, getIntFromHuman, getLocation, getStringFromHuman, grab, left, place, rest, right, say, say, say, say, say, setAppearance, step |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HumanBot
public HumanBot()
HumanBot
public HumanBot(boolean power)
compute
public void compute()
- This is what the system runs so the bot can run around the maze.
- Specified by:
compute in class Bot
getCommand
public String getCommand()
- Read a line of text from the user.
runCommand
public boolean runCommand(char c)
- Returns:
- true if quit was selected.
placeAction
public void placeAction()
installAction
public void installAction()
display
public void display(String s)
printMenu
public void printMenu()