|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbot.CoreInformer
A basic informer with some utility functions
| Field Summary | |
protected Runner |
runner
|
static int |
STATE_OVER
|
static int |
STATE_RESET
|
static int |
STATE_RUNNING
|
static int |
STATE_STEPPING
|
static int |
STATE_STOPPED
|
| Fields inherited from interface bot.Informer |
CHAR_BY_CHAR_INPUT, STRING_INPUT |
| Constructor Summary | |
CoreInformer(Runner runner)
|
|
| Method Summary | |
protected void |
beginAction()
Begin a step. |
void |
endAction()
|
void |
endGame(boolean won)
|
void |
feel()
Bot Action |
int |
getCurrentTime()
|
Runner |
getRunner()
Get the runner using this informer. |
void |
grab()
Bot Action |
boolean |
inAction()
|
void |
inform(String s)
A message of something that transpired (for example, used object.) |
void |
land()
Put the bot on the board. |
void |
place()
Bot Action |
void |
relocate(Point from,
Point to)
Bot Action - when Bot changes position. |
void |
reset(BotBoard botboard)
Reset the board back to a new passed board. |
void |
resetTick()
|
void |
rest()
Bot Action |
void |
say(String s)
Bot Action--it says something |
void |
setAppearance(String toWhat)
This changes what the bot looks like/is described as. |
void |
setBoard(Board bd)
Setting the board to display to passed board. |
protected void |
tick()
|
void |
touch(Point where)
Call to say the given point has been modified. |
void |
turn(int new_direction)
The bot turns to face the new passed direction. |
void |
waitForGo()
|
void |
waitForReset()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface bot.Informer |
alert, beginSimulation, getInput, pausing, redraw, selectBoard, selectBot, setInputMode |
| Field Detail |
public static int STATE_RUNNING
public static int STATE_STOPPED
public static int STATE_STEPPING
public static int STATE_OVER
public static int STATE_RESET
protected Runner runner
| Constructor Detail |
public CoreInformer(Runner runner)
| Method Detail |
public void reset(BotBoard botboard)
reset in interface Informerpublic void setBoard(Board bd)
setBoard in interface Informerprotected void beginAction()
public boolean inAction()
public void endAction()
endAction in interface Informerpublic void land()
land in interface Informerpublic void turn(int new_direction)
turn in interface Informerpublic void rest()
Informer
rest in interface Informerpublic void say(String s)
Informer
say in interface Informerpublic void inform(String s)
Informer
inform in interface Informers - The message to display.public void grab()
Informer
grab in interface Informerpublic void feel()
Informer
feel in interface Informerpublic void place()
Informer
place in interface Informerpublic void endGame(boolean won)
endGame in interface Informerprotected void tick()
public void resetTick()
public void relocate(Point from,
Point to)
Informer
relocate in interface Informerpublic int getCurrentTime()
getCurrentTime in interface Informerpublic Runner getRunner()
Informer
getRunner in interface Informerpublic void touch(Point where)
touch in interface Informerpublic void setAppearance(String toWhat)
setAppearance in interface Informerpublic void waitForGo()
public void waitForReset()
waitForReset in interface Informer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||