bot
Interface Informer

All Known Implementing Classes:
CoreInformer, GraphicInformer, MinimalInformer

public interface Informer


Field Summary
static int CHAR_BY_CHAR_INPUT
           
static int STRING_INPUT
           
 
Method Summary
 void alert(String s)
          Big, important message (alarms, bot died, etc.)
 void beginSimulation(boolean pause)
          Call when simulation starts.
 void endAction()
           
 void endGame(boolean won)
           
 void feel()
          Bot Action
 int getCurrentTime()
           
 String getInput()
           
 Runner getRunner()
          Get the runner using this informer.
 void grab()
          Bot Action
 void inform(String s)
          A message of something that transpired (for example, used object.)
 void land()
          Called when bot is dropped--begins a run
 void pausing(boolean is_on, String why)
           
 void place()
          Bot Action
 void redraw()
           
 void relocate(Point from, Point to)
          Bot Action - when Bot changes position.
 void reset(BotBoard botboard)
           
 void rest()
          Bot Action
 void say(String s)
          Bot Action--it says something
 void selectBoard()
           
 void selectBot()
          Inform user that they must select a bot, and then have them select it.
 void setAppearance(String toWhat)
          This changes what the bot looks like/is described as.
 void setBoard(Board board)
           
 void setInputMode(int mode)
           
 void touch(Point where)
          Bot Action Call to say the given point has been modified.
 void turn(int new_direction)
          Bot Action
 void waitForReset()
           
 

Field Detail

CHAR_BY_CHAR_INPUT

public static final int CHAR_BY_CHAR_INPUT
See Also:
Constant Field Values

STRING_INPUT

public static final int STRING_INPUT
See Also:
Constant Field Values
Method Detail

land

public void land()
Called when bot is dropped--begins a run


relocate

public void relocate(Point from,
                     Point to)
Bot Action - when Bot changes position.


touch

public void touch(Point where)
Bot Action Call to say the given point has been modified. (Starts an action.)


rest

public void rest()
Bot Action


setAppearance

public void setAppearance(String toWhat)
This changes what the bot looks like/is described as.


turn

public void turn(int new_direction)
Bot Action


say

public void say(String s)
Bot Action--it says something


place

public void place()
Bot Action


grab

public void grab()
Bot Action


feel

public void feel()
Bot Action


beginSimulation

public void beginSimulation(boolean pause)
Call when simulation starts. Pause means hang until user says to go.


waitForReset

public void waitForReset()

getInput

public String getInput()

setInputMode

public void setInputMode(int mode)

setBoard

public void setBoard(Board board)

endGame

public void endGame(boolean won)

reset

public void reset(BotBoard botboard)

alert

public void alert(String s)
Big, important message (alarms, bot died, etc.)

Parameters:
s - The message to display.

inform

public void inform(String s)
A message of something that transpired (for example, used object.)

Parameters:
s - The message to display.

pausing

public void pausing(boolean is_on,
                    String why)

redraw

public void redraw()

endAction

public void endAction()

getCurrentTime

public int getCurrentTime()

getRunner

public Runner getRunner()
Get the runner using this informer. Null means no runner has been set.


selectBot

public void selectBot()
Inform user that they must select a bot, and then have them select it.


selectBoard

public void selectBoard()